update changelog
[profile/ivi/efl-theme-tizen.git] / themes / widgets / entry.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 //#define ENTRY_BLOCK_HANDLE_SOURCE2 "elm/entry/selection/block_handle"
20 //#define ENTRY_BLOCK_HANDLE_SOURCE3 "elm/entry/selection/block_handle_top"
21 #define ENTRY_BLOCK_HANDLE_SOURCE2 "elm/entry/selection/block_handle_right"
22 #define ENTRY_BLOCK_HANDLE_SOURCE3 "elm/entry/selection/block_handle_left"
23
24 group { name: "elm/entry/base/default";
25    alias: "elm/entry/base-mixedwrap/default";
26    data.item: "default_font_size" "24";
27    data.item: "min_font_size" "8";
28    data.item: "max_font_size" "60";
29    styles {
30       style { name: "entry_textblock_style";
31          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" left_margin=1 right_margin=2 wrap=mixed text_class=entry";
32          tag:  "br" "\n";
33          tag:  "ps" "ps";
34          tag:  "tab" "\t";
35          tag:  "em" "+ font=SLP:style=Oblique";
36          tag:  "b" "+ font=SLP:style=Bold";
37          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
38          tag:  "hilight" "+ font=SLP:style=Bold";
39          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
40          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;
41       }
42       style { name: "entry_textblock_disabled_style";
43          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 left_margin=1 right_margin=2 wrap=mixed text_class=entry";
44          tag:  "br" "\n";
45          tag:  "ps" "ps";
46          tag:  "tab" "\t";
47          tag:  "em" "+ font=SLP:style=Oblique";
48          tag:  "b" "+ font=SLP:style=Bold";
49          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
50          tag:  "hilight" "+ font=SLP:style=Bold";
51          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
52          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;
53       }
54    }
55    data {
56       item: context_menu_orientation "horizontal";
57    }
58    parts {
59       part { name: "elm.text";
60          type: TEXTBLOCK;
61          mouse_events: 1;
62          scale: 1;
63          entry_mode: EDITABLE;
64          select_mode: BLOCK_HANDLE;
65          //cursor_mode: BEFORE;
66          multiline: 1;
67          source: "elm/entry/selection/default"; // selection under
68          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
69          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
70          source4: "elm/entry/cursor/default"; // cursorover
71          source5: "elm/entry/anchor/default"; // anchor under
72          //source6: "X"; // anchor over
73          description { state: "default" 0.0;
74             fixed: 1 0;
75             text {
76                style: "entry_textblock_style";
77                min: 0 1;
78                align: 0.0 0.0;
79             }
80          }
81          description { state: "disabled" 0.0;
82             inherit: "default" 0.0;
83             text {
84                style: "entry_textblock_disabled_style";
85                min: 0 1;
86             }
87          }
88       }
89    }
90    programs {
91       program { name: "focus";
92          signal: "load";
93          source: "";
94          action: FOCUS_SET;
95          target: "elm.text";
96       }
97       program { name: "disable";
98          signal: "elm,state,disabled";
99          source: "elm";
100          action: STATE_SET "disabled" 0.0;
101          target: "elm.text";
102       }
103       program { name: "enable";
104          signal: "elm,state,enabled";
105          source: "elm";
106          action: STATE_SET "default" 0.0;
107          target: "elm.text";
108       }
109    }
110 }
111
112 group { name: "elm/entry/base-charwrap/default";
113    alias: "elm/entry/base/char_wrap";
114    data.item: "default_font_size" "24";
115    data.item: "min_font_size" "8";
116    data.item: "max_font_size" "60";
117    styles {
118       style { name: "entry_textblock_char_wrap_style";
119          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
120          tag:  "br" "\n";
121          tag:  "ps" "ps";
122          tag:  "tab" "\t";
123          tag:  "em" "+ font=SLP:style=Oblique";
124          tag:  "b" "+ font=SLP:style=Bold";
125          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
126          tag:  "hilight" "+ font=SLP:style=Bold";
127          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
128          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;
129       }
130       style { name: "entry_textblock_char_wrap_disabled_style";
131          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2 text_class=entry";
132          tag:  "br" "\n";
133          tag:  "ps" "ps";
134          tag:  "tab" "\t";
135          tag:  "em" "+ font=SLP:style=Oblique";
136          tag:  "b" "+ font=SLP:style=Bold";
137          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
138          tag:  "hilight" "+ font=SLP:style=Bold";
139          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
140          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;
141       }
142    }
143    data {
144       item: context_menu_orientation "horizontal";
145    }
146    parts {
147       part { name: "elm.text";
148          type: TEXTBLOCK;
149          mouse_events: 1;
150          scale: 1;
151          entry_mode: EDITABLE;
152          select_mode: BLOCK_HANDLE;
153          //cursor_mode: BEFORE;
154          multiline: 1;
155          source: "elm/entry/selection/default"; // selection under
156          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
157          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
158          source4: "elm/entry/cursor/default"; // cursorover
159          source5: "elm/entry/anchor/default"; // anchor under
160          //source6: "X"; // anchor over
161          description { state: "default" 0.0;
162             fixed: 1 0;
163             text {
164                style: "entry_textblock_char_wrap_style";
165                min: 0 1;
166                align: 0.0 0.0;
167             }
168          }
169          description { state: "disabled" 0.0;
170             inherit: "default" 0.0;
171             text {
172                style: "entry_textblock_char_wrap_disabled_style";
173                min: 0 1;
174             }
175          }
176       }
177    }
178    programs {
179          program { name: "focus";
180             signal: "load";
181             source: "";
182             action: FOCUS_SET;
183             target: "elm.text";
184          }
185          program { name: "disable";
186             signal: "elm,state,disabled";
187             source: "elm";
188             action: STATE_SET "disabled" 0.0;
189             target: "elm.text";
190          }
191          program { name: "enable";
192             signal: "elm,state,enabled";
193             source: "elm";
194             action: STATE_SET "default" 0.0;
195             target: "elm.text";
196          }
197       }
198    }
199
200 group { name: "elm/entry/base-nowrap/default";
201    data.item: "default_font_size" "24";
202    data.item: "min_font_size" "8";
203    data.item: "max_font_size" "60";
204    data {
205       item: context_menu_orientation "horizontal";
206    }
207    parts {
208       part { name: "elm.text";
209          type: TEXTBLOCK;
210          mouse_events: 1;
211          scale: 1;
212          entry_mode: EDITABLE;
213          select_mode: BLOCK_HANDLE;
214          //cursor_mode: BEFORE;
215          multiline: 1;
216          source: "elm/entry/selection/default"; // selection under
217          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
218          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
219          source4: "elm/entry/cursor/default"; // cursorover
220          source5: "elm/entry/anchor/default"; // anchor under
221          description { state: "default" 0.0;
222             text {
223                style: "entry_textblock_style";
224                min: 1 1;
225                align: 0.0 0.0;
226             }
227          }
228          description { state: "disabled" 0.0;
229             inherit: "default" 0.0;
230             text {
231                style: "entry_textblock_disabled_style";
232                min: 0 1;
233             }
234          }
235       }
236    }
237    programs {
238       program { name: "focus";
239          signal: "load";
240          source: "";
241          action: FOCUS_SET;
242          target: "elm.text";
243       }
244       program { name: "disable";
245          signal: "elm,state,disabled";
246          source: "elm";
247          action: STATE_SET "disabled" 0.0;
248          target: "elm.text";
249       }
250       program { name: "enable";
251          signal: "elm,state,enabled";
252          source: "elm";
253          action: STATE_SET "default" 0.0;
254          target: "elm.text";
255       }
256    }
257 }
258
259 group { name: "elm/entry/base/editfield";
260    alias: "elm/entry/base-mixedwrap/editfield";
261    alias: "elm/entry/base/editfield/default";
262    alias: "elm/entry/base/editfield/lighting";
263    alias: "elm/entry/base/editfield/multiline";
264    alias: "elm/entry/base/editfield/multiline/default";
265    alias: "elm/entry/base/editfield/multiline/lighting";
266    alias: "elm/entry/base/editfield/searchbar/default";
267    data.item: "default_font_size" "24";
268    data.item: "min_font_size" "8";
269    data.item: "max_font_size" "60";
270    styles {
271       style { name: "editfield_textblock_style";
272          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2";
273          tag:  "br" "\n";
274          tag:  "ps" "ps";
275          tag:  "tab" "\t";
276          tag:  "em" "+ font=SLP:style=Oblique";
277          tag:  "b" "+ font=SLP:style=Bold";
278          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
279          tag:  "hilight" "+ font=SLP:style=Bold";
280          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
281          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;
282       }
283       style { name: "editfield_textblock_disabled_style";
284          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=mixed left_margin=1 right_margin=2";
285          tag:  "br" "\n";
286          tag:  "ps" "ps";
287          tag:  "tab" "\t";
288          tag:  "em" "+ font=SLP:style=Oblique";
289          tag:  "b" "+ font=SLP:style=Bold";
290          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
291          tag:  "hilight" "+ font=SLP:style=Bold";
292          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
293          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;
294       }
295    }
296    data {
297       item: context_menu_orientation "horizontal";
298    }
299    parts {
300       part { name: "elm.text";
301          type: TEXTBLOCK;
302          mouse_events: 1;
303          scale: 1;
304          entry_mode: EDITABLE;
305          select_mode: BLOCK_HANDLE;
306          //cursor_mode: BEFORE;
307          multiline: 1;
308          source: "elm/entry/selection/default"; // selection under
309          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
310          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
311          source4: "elm/entry/cursor/default"; // cursorover
312          source5: "elm/entry/anchor/default"; // anchor under
313          //source6: "X"; // anchor over
314          description { state: "default" 0.0;
315             fixed: 1 0;
316             text {
317             style: "editfield_textblock_style";
318                min: 0 1;
319                align: 0.0 0.0;
320             }
321          }
322          description { state: "disabled" 0.0;
323             inherit: "default" 0.0;
324             text {
325                style: "editfield_textblock_disabled_style";
326                min: 0 1;
327             }
328          }
329       }
330    }
331    programs {
332       program { name: "focus";
333          signal: "load";
334          source: "";
335          action: FOCUS_SET;
336          target: "elm.text";
337       }
338       program { name: "disable";
339          signal: "elm,state,disabled";
340          source: "elm";
341          action: STATE_SET "disabled" 0.0;
342          target: "elm.text";
343       }
344       program { name: "enable";
345          signal: "elm,state,enabled";
346          source: "elm";
347          action: STATE_SET "default" 0.0;
348          target: "elm.text";
349       }
350    }
351 }
352
353 group { name: "elm/entry/base-charwrap/editfield";
354    alias: "elm/entry/base/editfield/char_wrap";
355    alias: "elm/entry/base/editfield/default/char_wrap";
356    alias: "elm/entry/base/editfield/lighting/char_wrap";
357    alias: "elm/entry/base/editfield/multiline/char_wrap";
358    alias: "elm/entry/base/editfield/multiline/default/char_wrap";
359    alias: "elm/entry/base/editfield/multiline/lighting/char_wrap";
360    data.item: "default_font_size" "24";
361    data.item: "min_font_size" "8";
362    data.item: "max_font_size" "60";
363    styles {
364       style { name: "editfield_textblock_char_wrap_style";
365          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2";
366          tag:  "br" "\n";
367          tag:  "ps" "ps";
368          tag:  "tab" "\t";
369          tag:  "em" "+ font=SLP:style=Oblique";
370          tag:  "b" "+ font=SLP:style=Bold";
371          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
372          tag:  "hilight" "+ font=SLP:style=Bold";
373          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
374          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;
375       }
376       style { name: "editfield_textblock_char_wrap_disabled_style";
377          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2";
378          tag:  "br" "\n";
379          tag:  "ps" "ps";
380          tag:  "tab" "\t";
381          tag:  "em" "+ font=SLP:style=Oblique";
382          tag:  "b" "+ font=SLP:style=Bold";
383          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
384          tag:  "hilight" "+ font=SLP:style=Bold";
385          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
386          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;
387       }
388    }
389    data {
390       item: context_menu_orientation "horizontal";
391    }
392    parts {
393       part { name: "elm.text";
394          type: TEXTBLOCK;
395          mouse_events: 1;
396          scale: 1;
397          entry_mode: EDITABLE;
398          select_mode: BLOCK_HANDLE;
399          //cursor_mode: BEFORE;
400          multiline: 1;
401          source: "elm/entry/selection/default"; // selection under
402          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
403          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
404          source4: "elm/entry/cursor/default"; // cursorover
405          source5: "elm/entry/anchor/default"; // anchor under
406          //source6: "X"; // anchor over
407          description { state: "default" 0.0;
408             fixed: 1 0;
409             text {
410                style: "editfield_textblock_char_wrap_style";
411                min: 0 1;
412                align: 0.0 0.0;
413             }
414          }
415          description { state: "disabled" 0.0;
416             inherit: "default" 0.0;
417             text {
418                style: "editfield_textblock_char_wrap_disabled_style";
419                min: 0 1;
420             }
421          }
422       }
423    }
424    programs {
425       program { name: "focus";
426          signal: "load";
427          source: "";
428          action: FOCUS_SET;
429          target: "elm.text";
430       }
431       program { name: "disable";
432          signal: "elm,state,disabled";
433          source: "elm";
434          action: STATE_SET "disabled" 0.0;
435          target: "elm.text";
436       }
437       program { name: "enable";
438          signal: "elm,state,enabled";
439          source: "elm";
440          action: STATE_SET "default" 0.0;
441          target: "elm.text";
442       }
443    }
444 }
445
446 group { name: "elm/entry/base-single/editfield";
447    alias: "elm/entry/base-single/editfield/default";
448    alias: "elm/entry/base-single/editfield/lighting";
449    alias: "elm/entry/base-single/editfield/singleline";
450    alias: "elm/entry/base-single/editfield/singleline/default";
451    alias: "elm/entry/base-single/editfield/singleline/lighting";
452    data.item: "default_font_size" "24";
453    data.item: "min_font_size" "8";
454    data.item: "max_font_size" "60";
455    styles {
456       style { name: "editfield_single_textblock_style";
457          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
458          tag:  "br" "\n";
459          tag:  "ps" "ps";
460          tag:  "tab" "\t";
461          tag:  "em" "+ font=SLP:style=Oblique";
462          tag:  "b" "+ font=SLP:style=Bold";
463          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
464          tag:  "hilight" "+ font=SLP:style=Bold";
465          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
466          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;
467       }
468       style { name: "editfield_single_textblock_disabled_style";
469          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
470          tag:  "br" "\n";
471          tag:  "ps" "ps";
472          tag:  "tab" "\t";
473          tag:  "em" "+ font=SLP:style=Oblique";
474          tag:  "b" "+ font=SLP:style=Bold";
475          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
476          tag:  "hilight" "+ font=SLP:style=Bold";
477          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
478          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;
479
480       }
481    }
482    data {
483       item: context_menu_orientation "horizontal";
484    }
485    parts {
486       part { name: "elm.text";
487          type: TEXTBLOCK;
488          mouse_events: 1;
489          scale: 1;
490          entry_mode: EDITABLE;
491          select_mode: BLOCK_HANDLE;
492          //cursor_mode: BEFORE;
493          multiline: 0;
494          source: "elm/entry/selection/default"; // selection under
495          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
496          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
497          source4: "elm/entry/cursor/default"; // cursorover
498          source5: "elm/entry/anchor/default"; // anchor under
499          description { state: "default" 0.0;
500             text {
501                style: "editfield_single_textblock_style";
502                min: 1 1;
503                max: 0 1;
504             }
505          }
506          description { state: "disabled" 0.0;
507             inherit: "default" 0.0;
508             text {
509                style: "editfield_single_textblock_disabled_style";
510             }
511          }
512       }
513    }
514    programs {
515       program { name: "focus";
516          signal: "load";
517          source: "";
518          action: FOCUS_SET;
519          target: "elm.text";
520       }
521       program { name: "disable";
522          signal: "elm,state,disabled";
523          source: "elm";
524          action: STATE_SET "disabled" 0.0;
525          target: "elm.text";
526       }
527       program { name: "enable";
528          signal: "elm,state,enabled";
529          source: "elm";
530          action: STATE_SET "default" 0.0;
531          target: "elm.text";
532       }
533    }
534 }
535
536 group { name: "elm/entry/base-single/editfield/searchbar/default";
537    data.item: "default_font_size" "24";
538    data.item: "min_font_size" "8";
539    data.item: "max_font_size" "60";
540    data {
541       item: context_menu_orientation "horizontal";
542    }
543    parts {
544       part { name: "elm.text";
545          type: TEXTBLOCK;
546          mouse_events: 1;
547          scale: 1;
548          entry_mode: EDITABLE;
549          select_mode: BLOCK_HANDLE;
550          //cursor_mode: BEFORE;
551          multiline: 0;
552          source: "elm/entry/selection/default"; // selection under
553          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
554          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
555          source4: "elm/entry/cursor/default"; // cursorover
556          source5: "elm/entry/anchor/default"; // anchor under
557          description { state: "default" 0.0;
558             text {
559                style: "editfield_single_textblock_style";
560                min: 1 1;
561                max: 0 1;
562             }
563          }
564          description { state: "disabled" 0.0;
565             inherit: "default" 0.0;
566             text {
567                style: "editfield_single_textblock_disabled_style";
568             }
569          }
570       }
571    }
572    programs {
573       program { name: "focus";
574          signal: "load";
575          source: "";
576          action: FOCUS_SET;
577          target: "elm.text";
578       }
579       program { name: "disable";
580          signal: "elm,state,disabled";
581          source: "elm";
582          action: STATE_SET "disabled" 0.0;
583          target: "elm.text";
584       }
585       program { name: "enable";
586          signal: "elm,state,enabled";
587          source: "elm";
588          action: STATE_SET "default" 0.0;
589          target: "elm.text";
590       }
591    }
592 }
593
594 group { name: "elm/entry/base-nowrap/default";
595    data.item: "default_font_size" "24";
596    data.item: "min_font_size" "8";
597    data.item: "max_font_size" "60";
598    data {
599       item: context_menu_orientation "horizontal";
600    }
601    parts {
602       part { name: "elm.text";
603          type: TEXTBLOCK;
604          mouse_events: 1;
605          scale: 1;
606          entry_mode: EDITABLE;
607          select_mode: BLOCK_HANDLE;
608          //cursor_mode: BEFORE;
609          multiline: 1;
610          source: "elm/entry/selection/default"; // selection under
611          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
612          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
613          source4: "elm/entry/cursor/default"; // cursorover
614          source5: "elm/entry/anchor/default"; // anchor under
615          description { state: "default" 0.0;
616             text {
617                style: "entry_textblock_style";
618                min: 1 1;
619                align: 0.0 0.0;
620             }
621          }
622          description { state: "disabled" 0.0;
623             inherit: "default" 0.0;
624             text {
625                style: "entry_textblock_disabled_style";
626                min: 0 1;
627             }
628          }
629       }
630    }
631    programs {
632       program { name: "focus";
633          signal: "load";
634          source: "";
635          action: FOCUS_SET;
636          target: "elm.text";
637       }
638       program { name: "disable";
639          signal: "elm,state,disabled";
640          source: "elm";
641          action: STATE_SET "disabled" 0.0;
642          target: "elm.text";
643       }
644       program { name: "enable";
645          signal: "elm,state,enabled";
646          source: "elm";
647          action: STATE_SET "default" 0.0;
648          target: "elm.text";
649       }
650    }
651 }
652
653 group { name: "elm/entry/base-single/default";
654    data.item: "default_font_size" "24";
655    data.item: "min_font_size" "8";
656    data.item: "max_font_size" "60";
657    styles {
658       style { name: "entry_single_textblock_style";
659          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
660          tag:  "br" "\n";
661          tag:  "ps" "ps";
662          tag:  "tab" "\t";
663          tag:  "em" "+ font=SLP:style=Oblique";
664          tag:  "b" "+ font=SLP:style=Bold";
665          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
666          tag:  "hilight" "+ font=SLP:style=Bold";
667          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
668          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;
669       }
670       style { name: "entry_single_textblock_disabled_style";
671          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
672          tag:  "br" "\n";
673          tag:  "ps" "ps";
674          tag:  "tab" "\t";
675          tag:  "em" "+ font=SLP:style=Oblique";
676          tag:  "b" "+ font=SLP:style=Bold";
677          tag:  "link " "+ color=#00000080 underline=on underline_color=#00000080";
678          tag:  "hilight" "+ font=SLP:style=Bold";
679          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
680          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;
681       }
682    }
683    data {
684       item: context_menu_orientation "horizontal";
685    }
686    parts {
687       part { name: "elm.text";
688          type: TEXTBLOCK;
689          mouse_events: 1;
690          scale: 1;
691          entry_mode: EDITABLE;
692          select_mode: BLOCK_HANDLE;
693          //cursor_mode: BEFORE;
694          multiline: 0;
695          source: "elm/entry/selection/default"; // selection under
696          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
697          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
698          source4: "elm/entry/cursor/default"; // cursorover
699          source5: "elm/entry/anchor/default"; // anchor under
700          description { state: "default" 0.0;
701             text {
702                style: "entry_single_textblock_style";
703                min: 1 1;
704                max: 0 0;
705                align: 0.0 0.5;
706             }
707          }
708          description { state: "disabled" 0.0;
709             inherit: "default" 0.0;
710             text {
711                style: "entry_single_textblock_disabled_style";
712             }
713          }
714       }
715    }
716    programs {
717       program { name: "focus";
718          signal: "load";
719          source: "";
720          action: FOCUS_SET;
721          target: "elm.text";
722       }
723       program { name: "disable";
724          signal: "elm,state,disabled";
725          source: "elm";
726          action: STATE_SET "disabled" 0.0;
727          target: "elm.text";
728       }
729       program { name: "enable";
730          signal: "elm,state,enabled";
731          source: "elm";
732          action: STATE_SET "default" 0.0;
733          target: "elm.text";
734       }
735    }
736 }
737
738 group { name: "elm/entry/base-single-noedit/default";
739    data.item: "default_font_size" "24";
740    data.item: "min_font_size" "8";
741    data.item: "max_font_size" "60";
742    data {
743       item: context_menu_orientation "horizontal";
744    }
745    parts {
746       part { name: "elm.text";
747          type: TEXTBLOCK;
748          mouse_events: 1;
749          scale: 1;
750          entry_mode: PLAIN;
751          select_mode: BLOCK_HANDLE;
752          //cursor_mode: BEFORE;
753          multiline: 0;
754          source: "elm/entry/selection/default"; // selection under
755          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
756          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
757          source5: "elm/entry/anchor/default"; // anchor under
758          description { state: "default" 0.0;
759             text {
760                style: "entry_single_textblock_style";
761                min: 1 1;
762                max: 0 1;
763             }
764          }
765          description { state: "disabled" 0.0;
766             inherit: "default" 0.0;
767             text {
768                style: "entry_single_textblock_disabled_style";
769             }
770          }
771       }
772    }
773    programs {
774       program { name: "focus";
775          signal: "load";
776          source: "";
777          action: FOCUS_SET;
778          target: "elm.text";
779       }
780       program { name: "disable";
781          signal: "elm,state,disabled";
782          source: "elm";
783          action: STATE_SET "disabled" 0.0;
784          target: "elm.text";
785       }
786       program { name: "enable";
787          signal: "elm,state,enabled";
788          source: "elm";
789          action: STATE_SET "default" 0.0;
790          target: "elm.text";
791       }
792    }
793 }
794
795 group { name: "elm/entry/base-noedit/default";
796    data.item: "default_font_size" "24";
797    data.item: "min_font_size" "8";
798    data.item: "max_font_size" "60";
799    data {
800       item: context_menu_orientation "horizontal";
801    }
802    parts {
803       part { name: "elm.text";
804          type: TEXTBLOCK;
805          mouse_events: 1;
806          scale: 1;
807          entry_mode: PLAIN;
808          select_mode: BLOCK_HANDLE;
809          //cursor_mode: BEFORE;
810          multiline: 1;
811          source: "elm/entry/selection/default"; // selection under
812          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
813          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
814          source5: "elm/entry/anchor/default"; // anchor under
815          description { state: "default" 0.0;
816             fixed: 1 0;
817             text {
818                style: "entry_textblock_style";
819                min: 0 1;
820                align: 0.0 0.0;
821             }
822          }
823          description { state: "disabled" 0.0;
824             inherit: "default" 0.0;
825             text {
826                style: "entry_textblock_disabled_style";
827             }
828          }
829       }
830    }
831    programs {
832       program { name: "focus";
833          signal: "load";
834          source: "";
835          action: FOCUS_SET;
836          target: "elm.text";
837       }
838       program { name: "disable";
839          signal: "elm,state,disabled";
840          source: "elm";
841          action: STATE_SET "disabled" 0.0;
842          target: "elm.text";
843       }
844       program { name: "enable";
845          signal: "elm,state,enabled";
846          source: "elm";
847          action: STATE_SET "default" 0.0;
848          target: "elm.text";
849       }
850    }
851 }
852
853    group { name: "elm/entry/base-noedit-charwrap/default";
854       data.item: "default_font_size" "24";
855       data.item: "min_font_size" "8";
856       data.item: "max_font_size" "60";
857       data {
858          item: context_menu_orientation "horizontal";
859       }
860       parts {
861          part { name: "elm.text";
862             type: TEXTBLOCK;
863             mouse_events: 1;
864             scale: 1;
865             entry_mode: PLAIN;
866             select_mode: BLOCK_HANDLE;
867             //cursor_mode: BEFORE;
868             multiline: 1;
869             source: "elm/entry/selection/default"; // selection under
870             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
871             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
872             source5: "elm/entry/anchor/default"; // anchor under
873             description { state: "default" 0.0;
874                fixed: 1 0;
875                text {
876                   style: "entry_textblock_style_charwrap";
877                   min: 0 1;
878                align: 0.0 0.0;
879                }
880             }
881             description { state: "disabled" 0.0;
882                inherit: "default" 0.0;
883                text {
884                   style: "entry_textblock_disabled_style_charwrap";
885                }
886             }
887          }
888       }
889       programs {
890          program { name: "focus";
891             signal: "load";
892             source: "";
893             action: FOCUS_SET;
894             target: "elm.text";
895          }
896          program { name: "disable";
897             signal: "elm,state,disabled";
898             source: "elm";
899             action: STATE_SET "disabled" 0.0;
900             target: "elm.text";
901          }
902          program { name: "enable";
903             signal: "elm,state,enabled";
904             source: "elm";
905             action: STATE_SET "default" 0.0;
906             target: "elm.text";
907          }
908       }
909    }
910
911    group { name: "elm/entry/base-nowrap-noedit/default";
912       data.item: "default_font_size" "24";
913       data.item: "min_font_size" "8";
914       data.item: "max_font_size" "60";
915       data {
916          item: context_menu_orientation "horizontal";
917       }
918       parts {
919          part { name: "elm.text";
920             type: TEXTBLOCK;
921             mouse_events: 1;
922             scale: 1;
923             entry_mode: PLAIN;
924             select_mode: BLOCK_HANDLE;
925             //cursor_mode: BEFORE;
926             multiline: 1;
927             source: "elm/entry/selection/default"; // selection under
928             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
929             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
930             source5: "elm/entry/anchor/default"; // anchor under
931             description { state: "default" 0.0;
932                text {
933                   style: "entry_textblock_style";
934                   min: 1 1;
935                align: 0.0 0.0;
936                }
937             }
938             description { state: "disabled" 0.0;
939                inherit: "default" 0.0;
940                text {
941                   style: "entry_textblock_disabled_style";
942                }
943             }
944          }
945       }
946       programs {
947          program { name: "focus";
948             signal: "load";
949             source: "";
950             action: FOCUS_SET;
951             target: "elm.text";
952          }
953          program { name: "disable";
954             signal: "elm,state,disabled";
955             source: "elm";
956             action: STATE_SET "disabled" 0.0;
957             target: "elm.text";
958          }
959          program { name: "enable";
960             signal: "elm,state,enabled";
961             source: "elm";
962             action: STATE_SET "default" 0.0;
963             target: "elm.text";
964          }
965       }
966    }
967
968   group { name: "elm/entry/base-password/default";
969       data.item: "default_font_size" "24";
970       data.item: "min_font_size" "8";
971       data.item: "max_font_size" "60";
972       data {
973          item: context_menu_orientation "horizontal";
974       }
975       parts {
976          part { name: "elm.text";
977             type: TEXTBLOCK;
978             mouse_events: 1;
979             scale: 1;
980             entry_mode: PASSWORD;
981             select_mode: BLOCK_HANDLE;
982             //cursor_mode: BEFORE;
983             multiline: 0;
984             source: "elm/entry/selection/default"; // selection under
985             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
986             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
987             source4: "elm/entry/cursor/default"; // cursorover
988             source5: "elm/entry/anchor/default"; // anchor under
989             description { state: "default" 0.0;
990                text {
991                   style: "entry_single_textblock_style";
992                   repch: "*";
993                   min: 1 1;
994                   max: 0 1;
995                }
996             }
997             description { state: "disabled" 0.0;
998                inherit: "default" 0.0;
999                text {
1000                   style: "entry_single_textblock_disabled_style";
1001                }
1002             }
1003          }
1004       }
1005       programs {
1006          program { name: "focus";
1007             signal: "load";
1008             source: "";
1009             action: FOCUS_SET;
1010             target: "elm.text";
1011          }
1012          program { name: "disable";
1013             signal: "elm,state,disabled";
1014             source: "elm";
1015             action: STATE_SET "disabled" 0.0;
1016             target: "elm.text";
1017          }
1018          program { name: "enable";
1019             signal: "elm,state,enabled";
1020             source: "elm";
1021             action: STATE_SET "default" 0.0;
1022             target: "elm.text";
1023          }
1024       }
1025    }
1026
1027 group { name: "elm/entry/base-password/popup";
1028    data.item: "default_font_size" "24";
1029    data.item: "min_font_size" "8";
1030    data.item: "max_font_size" "60";
1031    data {
1032       item: context_menu_orientation "horizontal";
1033    }
1034    styles
1035    {
1036       style { name: "entry_single_textblock_popup_style";
1037          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" align=center wrap=mixed ellipsis=1.0 text_class=entry";
1038          tag:  "br" "\n";
1039          tag:  "ps" "ps";
1040          tag:  "tab" "\t";
1041          tag:  "em" "+ font=SLP:style=Oblique";
1042          tag:  "b" "+ font=SLP:style=Bold";
1043          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1044          tag:  "hilight" "+ font=SLP:style=Bold";
1045          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
1046          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;
1047
1048       }
1049       style { name: "entry_single_textblock_disabled_popup_style";
1050          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 align=center wrap=mixed ellipsis=1.0 text_class=entry";
1051          tag:  "br" "\n";
1052          tag:  "ps" "ps";
1053          tag:  "tab" "\t";
1054          tag:  "em" "+ font=SLP:style=Oblique";
1055          tag:  "b" "+ font=SLP:style=Bold";
1056          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
1057          tag:  "hilight" "+ font=SLP:style=Bold";
1058          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
1059          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;
1060       }
1061    }
1062    parts {
1063       part { name: "elm.text";
1064          type: TEXTBLOCK;
1065          mouse_events: 1;
1066          scale: 1;
1067          entry_mode: PASSWORD;
1068          select_mode: BLOCK_HANDLE;
1069          //cursor_mode: BEFORE;
1070          multiline: 0;
1071          source: "elm/entry/selection/default"; // selection under
1072          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
1073          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
1074          source4: "elm/entry/cursor/default"; // cursorover
1075          source5: "elm/entry/anchor/default"; // anchor under
1076          description { state: "default" 0.0;
1077             text {
1078                style: "entry_single_textblock_popup_style";
1079                repch: "*";
1080                min: 1 1;
1081                max: 0 1;
1082             }
1083          }
1084          description { state: "disabled" 0.0;
1085             inherit: "default" 0.0;
1086             text {
1087                style: "entry_single_textblock_disabled_popup_style";
1088             }
1089          }
1090       }
1091    }
1092    programs {
1093       program { name: "focus";
1094          signal: "load";
1095          source: "";
1096          action: FOCUS_SET;
1097          target: "elm.text";
1098       }
1099       program { name: "disable";
1100          signal: "elm,state,disabled";
1101          source: "elm";
1102          action: STATE_SET "disabled" 0.0;
1103          target: "elm.text";
1104       }
1105       program { name: "enable";
1106          signal: "elm,state,enabled";
1107          source: "elm";
1108          action: STATE_SET "default" 0.0;
1109          target: "elm.text";
1110       }
1111    }
1112 }
1113
1114         group { name: "elm/entry/cursor/default";
1115                 parts {
1116                         part { name: "clip2";
1117                                 type: RECT;
1118                                 mouse_events: 0;
1119                                 scale: 1;
1120                                 description { state: "default" 0.0;
1121                                         rel1.to: "clip";
1122                                         rel2.to: "clip";
1123                                 visible: 0;
1124                                 }
1125                                 description { state: "focused" 0.0;
1126                                         inherit: "default" 0.0;
1127                                         visible: 1;
1128                                 }
1129                         }
1130                         part { name: "clip";
1131                                 type: RECT;
1132                                 mouse_events: 0;
1133                                 scale: 1;
1134                                 clip_to: "clip2";
1135                                 description { state: "default" 0.0;
1136                                         rel1.offset: -10 0;
1137                                         rel2.offset: 9 9;
1138                                 }
1139                                 description { state: "hidden" 0.0;
1140                                         inherit: "default" 0.0;
1141                                         visible: 0;
1142                                 }
1143                         }
1144                         part { name: "base";
1145                                 mouse_events: 0;
1146                                 scale: 1;
1147                                 clip_to: "clip";
1148                                 description { state: "default" 0.0;
1149                                         min: 2 2;
1150                                         align: 0.5 1.0;
1151                                         color: 0 0 0 0;
1152                                 }
1153                         }
1154
1155                         part { name: "glow";
1156                                 type: RECT;
1157                                 mouse_events: 0;
1158                                 scale: 1;
1159                                 clip_to: "clip2";
1160                                 description { state: "default" 0.0;
1161                                         min: 3 0;
1162                                         fixed: 1 0;
1163                                         align: 0.5 0.5;
1164                                         rel1 {
1165                                                 relative: 0.0  0.0;
1166                                                 offset: 0 2;
1167                                         }
1168                                         rel2 {
1169                                                 relative: 0.0  1.0;
1170                                                 offset: 0 -2;
1171                                         }
1172                                         color: ENTRY_CURSOR_COLOR_INC;
1173                                 }
1174                                 description { state: "hidden" 0.0;
1175                                         inherit: "default" 0.0;
1176                                         color: 0 0 0 0;
1177                                 }
1178                         }
1179                 }
1180                 programs {
1181                         program { name: "show";
1182                                 action: STATE_SET "hidden" 0.0;
1183                                 in: 0.6 0.0;
1184                                 target: "glow";
1185                                 after: "show4";
1186                         }
1187                         program { name: "show4";
1188                                 action: STATE_SET "default" 0.0;
1189                                 in: 0.6 0.0;
1190                                 target: "glow";
1191                                 after: "show";
1192                         }
1193                         program { name: "focused";
1194                                 signal: "elm,action,focus";
1195                                 source: "elm";
1196                                 action: STATE_SET "focused" 0.0;
1197                                 target: "clip2";
1198                                 after: "show4";
1199                         }
1200                         program { name: "unfocused";
1201                                 signal: "elm,action,unfocus";
1202                                 source: "elm";
1203                                 action: STATE_SET "default" 0.0;
1204                                 target: "clip2";
1205                                 after: "stop_glow";
1206                         }
1207                         program { name: "stop_glow";
1208                         action: ACTION_STOP;
1209                                 target: "show";
1210                                 target: "show4";
1211                         }
1212                 }
1213         }
1214
1215
1216         group { name: "elm/entry/selection/default";
1217                 parts {
1218                         part { name: "bg";
1219                                 type: RECT;
1220                                 scale: 1;
1221                                 mouse_events: 0;
1222                                 description { state: "default" 0.0;
1223                                         color: ENTRY_SELECTION_BG_COLOR;
1224                                 }
1225                         }
1226                 }
1227         }
1228
1229         group { name: "elm/entry/selection/block_handle";
1230         data.item: "position" "BOTH";
1231                 images {
1232                   image: "reader_handler_up.png" COMP;
1233                 }
1234                 parts {
1235                         part { name: "bg";
1236                                 type: RECT;
1237                                 scale: 1;
1238                                 mouse_events: 1;
1239                                 description { state: "default" 0.0;
1240                                         visible: 0;
1241                                         fixed: 1 1;
1242                                         align: 0.5 0.25;
1243                                         min: 50 80;
1244                                         color: 0 0 0 0;
1245                                 }
1246                                 description { state: "show" 0.0;
1247                                         inherit: "default" 0.0;
1248                                         visible: 1;
1249                                 }
1250                         }
1251                         part { name: "handle";
1252                                 mouse_events: 1;
1253                                 scale: 1;
1254                                 description { state: "default" 0.0;
1255                                         visible: 0;
1256                         fixed: 1 1;
1257                                         align: 0.5 0.0;
1258                                         min: 48 66;
1259                                         rel1 {
1260                                                 relative: 0.0 0.0;
1261                                                 offset: 0 0;
1262                                         }
1263                                         rel2 {
1264                                                 relative: 0.0 0.0;
1265                                                 offset: 0 0;
1266                                         }
1267                                         image {
1268                                                 normal: "reader_handler_up.png";
1269                                                 border: 0 0 0 0;
1270                                         }
1271                                         image.middle: SOLID;
1272                                         fill.smooth: 0;
1273                                 }
1274                                 description { state: "show" 0.0;
1275                                         inherit: "default" 0.0;
1276                                         visible: 1;
1277                                 }
1278                         }
1279                 }
1280                 programs {
1281                         program { name: "focused";
1282                                 signal: "elm,action,focus";
1283                                 source: "elm";
1284                                 action: STATE_SET "show" 0.0;
1285                                 target: "handle";
1286                                 target: "bg";
1287                         }
1288                         program { name: "unfocused";
1289                                 signal: "elm,action,unfocus";
1290                                 source: "elm";
1291                                 action: STATE_SET "default" 0.0;
1292                                 target: "handle";
1293                                 target: "bg";
1294                         }
1295                 }
1296         }
1297
1298         group { name: "elm/entry/selection/block_handle_top";
1299         data.item: "position" "BOTH";
1300                 images {
1301                   image: "reader_handler_down.png" COMP;
1302                 }
1303                 parts {
1304                         part { name: "bg";
1305                                 type: RECT;
1306                                 scale: 1;
1307                                 mouse_events: 1;
1308                                 description { state: "default" 0.0;
1309                                         visible: 0;
1310                                         fixed: 1 1;
1311                                         align: 0.5 0.75;
1312                                         min: 50 80;
1313                                         color: 0 0 0 0;
1314                                 }
1315                                 description { state: "show" 0.0;
1316                                         inherit: "default" 0.0;
1317                                         visible: 1;
1318                                 }
1319                         }
1320                         part { name: "handle";
1321                                 mouse_events: 1;
1322                                 scale: 1;
1323                                 description { state: "default" 0.0;
1324                                         visible: 0;
1325                         fixed: 1 1;
1326                                         align: 0.5 1.0;
1327                                         min: 48 66;
1328                                         rel1 {
1329                                                 relative: 0.0 0.0;
1330                                                 offset: 0 0;
1331                                         }
1332                                         rel2 {
1333                                                 relative: 0.0 0.0;
1334                                                 offset: 0 0;
1335                                         }
1336                                         image {
1337                                                 normal: "reader_handler_down.png";
1338                                                 border: 0 0 0 0;
1339                                         }
1340                                         image.middle: SOLID;
1341                                         fill.smooth: 0;
1342                                 }
1343                                 description { state: "show" 0.0;
1344                                         inherit: "default" 0.0;
1345                                         visible: 1;
1346                                 }
1347                         }
1348                 }
1349                 programs {
1350                         program { name: "focused";
1351                                 signal: "elm,action,focus";
1352                                 source: "elm";
1353                                 action: STATE_SET "show" 0.0;
1354                                 target: "handle";
1355                                 target: "bg";
1356                         }
1357                         program { name: "unfocused";
1358                                 signal: "elm,action,unfocus";
1359                                 source: "elm";
1360                                 action: STATE_SET "default" 0.0;
1361                                 target: "handle";
1362                                 target: "bg";
1363                         }
1364                 }
1365         }
1366 /////////////////////////////////////////////////////////////////////////
1367         group { name: "elm/entry/selection/block_handle_left";
1368                 data.item: "position" "BOTTOM";
1369                 data.item: "height" "40";
1370                 images {
1371                   image: "copy&paste_Icon_left.png" COMP;
1372                   image: "copy&paste_Icon_left_press.png" COMP;
1373                   image: "copy&paste_Icon_left_top.png" COMP;
1374                   image: "copy&paste_Icon_left_top_press.png" COMP;
1375                 }
1376                 parts {
1377                         part { name: "bg";
1378                                 type: RECT;
1379                                 scale: 1;
1380                                 mouse_events: 1;
1381                                 description { state: "default" 0.0;
1382                                         visible: 0;
1383                                         fixed: 1 1;
1384                                         align: 1 0;
1385                                         min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
1386                                         color: 0 0 0 0;
1387                                 }
1388                                 description { state: "show" 0.0;
1389                                         inherit: "default" 0.0;
1390                                         visible: 1;
1391                                 }
1392                         }
1393                         part { name: "handle";
1394                                 mouse_events: 1;
1395                                 scale: 1;
1396                                 description { state: "default" 0.0;
1397                                         visible: 0;
1398                                         fixed: 1 1;
1399                                         align: 1 0;
1400                                         min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
1401                                         rel1 {
1402                                                 relative: 1.1 0.0;
1403                                                 offset: 0 -2;
1404                                                 to: "bg";
1405                                         }
1406                                         rel2 {
1407                                                 relative: 1.1 0.0;
1408                                                 offset: 0 -2;
1409                                                 to: "bg";
1410                                         }
1411                                         image {
1412                                                 normal: "copy&paste_Icon_left.png";
1413                                                 border: 0 0 0 0;
1414                                         }
1415                                         image.middle: SOLID;
1416                                         fill.smooth: 0;
1417                                 }
1418                                 description { state: "show" 0.0;
1419                                         inherit: "default" 0.0;
1420                                         visible: 1;
1421                                 }
1422                                 description { state: "top" 0.0;
1423                                         inherit: "default" 0.0;
1424                                         visible: 1;
1425                                         align: 1 1;
1426                                         image {
1427                                                 normal: "copy&paste_Icon_left_top.png";
1428                                         }
1429                                 }
1430                                 description { state: "press" 0.0;
1431                                         inherit: "default" 0.0;
1432                                         visible: 1;
1433                                         image {
1434                                                 normal: "copy&paste_Icon_left_press.png";
1435                                         }
1436                                 }
1437                                 description { state: "top_press" 0.0;
1438                                         inherit: "default" 0.0;
1439                                         visible: 1;
1440                                         align: 1 1;
1441                                         image {
1442                                                 normal: "copy&paste_Icon_left_top_press.png";
1443                                         }
1444                                 }
1445                         }
1446                 }
1447                 script {
1448                         public handler_ontop;
1449                         public handler_pressed;
1450                         public handler_focused;
1451                 }
1452                 programs {
1453                         program { name: "focused";
1454                                 signal: "edje,focus,in";
1455                                 source: "edje";
1456                                 script {
1457                                         set_int(handler_focused, 1);
1458                                 }
1459                         }
1460                         program { name: "unfocused";
1461                                 signal: "edje,focus,out";
1462                                 source: "edje";
1463                                 script {
1464                                         set_int(handler_focused, 0);
1465                                         set_state(PART:"handle", "default", 0.0);
1466                                 }
1467                         }
1468                         program { name: "top";
1469                         signal: "elm,state,top";
1470                                 source: "elm";
1471                                 script {
1472                                         new pressed;
1473                                         new focused;
1474                                         pressed = get_int(handler_pressed);
1475                                         focused = get_int(handler_focused);
1476                                         set_int(handler_ontop, 1);
1477                                         if (focused)
1478                                         {
1479                                              if (pressed)
1480                                                set_state(PART:"handle", "top_press", 0.0);
1481                                              else
1482                                                set_state(PART:"handle", "top", 0.0);
1483                                         }
1484                                         else
1485                                         {
1486                                              set_state(PART:"handle", "default", 0.0);
1487                                         }
1488                                 }
1489                         }
1490                         program { name: "bottom";
1491                         signal: "elm,state,bottom";
1492                                 source: "elm";
1493                                 script {
1494                                         new pressed;
1495                                         new focused;
1496                                         pressed = get_int(handler_pressed);
1497                                         focused = get_int(handler_focused);
1498                                         set_int(handler_ontop, 0);
1499                                         if (focused)
1500                                         {
1501                                              if (pressed)
1502                                                set_state(PART:"handle", "press", 0.0);
1503                                              else
1504                                                set_state(PART:"handle", "show", 0.0);
1505                                         }
1506                                         else
1507                                         {
1508                                              set_state(PART:"handle", "default", 0.0);
1509                                         }
1510                                 }
1511                         }
1512                         program { name: "pressed";
1513                                 signal: "mouse,down,1";
1514                                 source: "handle";
1515                                 script {
1516                                         new pos;
1517                                         pos = get_int(handler_ontop);
1518                                         set_int(handler_pressed, 1);
1519                                         if (pos)
1520                                                 set_state(PART:"handle", "top_press", 0.0);
1521                                         else
1522                                                 set_state(PART:"handle", "press", 0.0);
1523                                 }
1524                         }
1525                         program { name: "unpressed";
1526                                 signal: "mouse,up,1";
1527                                 source: "handle";
1528                                 script {
1529                                         new pos;
1530                                         pos = get_int(handler_ontop);
1531                                         set_int(handler_pressed, 0);
1532                                         if (pos)
1533                                                 set_state(PART:"handle", "top", 0.0);
1534                                         else
1535                                                 set_state(PART:"handle", "show", 0.0);
1536                                 }
1537                         }
1538                 }
1539         }
1540
1541         group { name: "elm/entry/selection/block_handle_right";
1542                 data.item: "position" "BOTH";
1543                 data.item: "height" "40";
1544                 images {
1545                   image: "copy&paste_Icon_right.png" COMP;
1546                   image: "copy&paste_Icon_right_press.png" COMP;
1547                   image: "copy&paste_Icon_right_top.png" COMP;
1548                   image: "copy&paste_Icon_right_top_press.png" COMP;
1549                 }
1550                 parts {
1551                         part { name: "handle";
1552                                 mouse_events: 1;
1553                                 scale: 1;
1554                                 description { state: "default" 0.0;
1555                                         visible: 0;
1556                                         fixed: 1 1;
1557                                         align: 0 0;
1558                                         min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
1559                                         rel1 {
1560                                                 relative: 0.0 0.0;
1561                                                 offset: 0 -2;
1562                                         }
1563                                         rel2 {
1564                                                 relative: 0.0 0.0;
1565                                                 offset: 0 -2;
1566                                         }
1567                                         image {
1568                                                 normal: "copy&paste_Icon_right.png";
1569                                                 border: 0 0 0 0;
1570                                         }
1571                                         image.middle: SOLID;
1572                                         fill.smooth: 0;
1573                                 }
1574                                 description { state: "show" 0.0;
1575                                         inherit: "default" 0.0;
1576                                         visible: 1;
1577                                 }
1578                                 description { state: "top" 0.0;
1579                                         inherit: "default" 0.0;
1580                                         visible: 1;
1581                                         align: 0 1;
1582                                         image {
1583                                                 normal: "copy&paste_Icon_right_top.png";
1584                                         }
1585                                 }
1586                                 description { state: "press" 0.0;
1587                                         inherit: "default" 0.0;
1588                                         visible: 1;
1589                                         image {
1590                                                 normal: "copy&paste_Icon_right_press.png";
1591                                         }
1592                                 }
1593                                 description { state: "top_press" 0.0;
1594                                         inherit: "default" 0.0;
1595                                         visible: 1;
1596                                         align: 0 1;
1597                                         image {
1598                                                 normal: "copy&paste_Icon_right_top_press.png";
1599                                         }
1600                                 }
1601                         }
1602                 }
1603                 script {
1604                         public handler_ontop;
1605                         public handler_pressed;
1606                         public handler_focused;
1607                 }
1608                 programs {
1609                         program { name: "focused";
1610                                 signal: "edje,focus,in";
1611                                 source: "edje";
1612                                 script {
1613                                         set_int(handler_focused, 1);
1614                                 }
1615                         }
1616                         program { name: "unfocused";
1617                                 signal: "edje,focus,out";
1618                                 source: "edje";
1619                                 script {
1620                                         set_int(handler_focused, 0);
1621                                         set_state(PART:"handle", "default", 0.0);
1622                                 }
1623                         }
1624                         program { name: "top";
1625                         signal: "elm,state,top";
1626                                 source: "elm";
1627                                 script {
1628                                         new pressed;
1629                                         new focused;
1630                                         pressed = get_int(handler_pressed);
1631                                         focused = get_int(handler_focused);
1632                                         set_int(handler_ontop, 1);
1633                                         if (focused)
1634                                         {
1635                                              if (pressed)
1636                                                set_state(PART:"handle", "top_press", 0.0);
1637                                              else
1638                                                set_state(PART:"handle", "top", 0.0);
1639                                         }
1640                                         else
1641                                         {
1642                                              set_state(PART:"handle", "default", 0.0);
1643                                         }
1644                                 }
1645                         }
1646                         program { name: "bottom";
1647                         signal: "elm,state,bottom";
1648                                 source: "elm";
1649                                 script {
1650                                         new pressed;
1651                                         new focused;
1652                                         pressed = get_int(handler_pressed);
1653                                         focused = get_int(handler_focused);
1654                                         set_int(handler_ontop, 0);
1655                                         if (focused)
1656                                         {
1657                                              if (pressed)
1658                                                set_state(PART:"handle", "press", 0.0);
1659                                              else
1660                                                set_state(PART:"handle", "show", 0.0);
1661                                         }
1662                                         else
1663                                         {
1664                                              set_state(PART:"handle", "default", 0.0);
1665                                         }
1666                                 }
1667                         }
1668                         program { name: "pressed";
1669                                 signal: "mouse,down,1";
1670                                 source: "handle";
1671                                 script {
1672                                         new pos;
1673                                         pos = get_int(handler_ontop);
1674                                         set_int(handler_pressed, 1);
1675                                         if (pos)
1676                                                 set_state(PART:"handle", "top_press", 0.0);
1677                                         else
1678                                                 set_state(PART:"handle", "press", 0.0);
1679                                 }
1680                         }
1681                         program { name: "unpressed";
1682                                 signal: "mouse,up,1";
1683                                 source: "handle";
1684                                 script {
1685                                         new pos;
1686                                         pos = get_int(handler_ontop);
1687                                         set_int(handler_pressed, 0);
1688                                         if (pos)
1689                                                 set_state(PART:"handle", "top", 0.0);
1690                                         else
1691                                                 set_state(PART:"handle", "show", 0.0);
1692                                 }
1693                         }
1694                 }
1695         }
1696
1697
1698 /////////////////////////////////////////////////////////////////////////
1699
1700         group { name: "elm/entry/selection/block_bar";
1701                 images {
1702                   image: "reader_longtap_blue.png" COMP;
1703                 }
1704                 parts {
1705                         part { name: "bar_bg";
1706                                 scale: 1;
1707                                 mouse_events: 0;
1708                                 description { state: "default" 0.0;
1709                                         visible: 0;
1710                                         image {
1711                                                 normal: "reader_longtap_blue.png";
1712                                                 border: 0 0 0 0;
1713                                         }
1714                                         image.middle: SOLID;
1715                                         fill.smooth: 0;
1716                                 }
1717                         }
1718                 }
1719         }
1720
1721
1722
1723         group { name: "elm/entry/anchor/default";
1724                 parts {
1725                         part { name: "bg";
1726                                 type: RECT;
1727                                 mouse_events: 0;
1728                                 description { state: "default" 0.0;
1729                                         color: 128 0 0 64;
1730                                 }
1731                         }
1732                 }
1733         }
1734
1735     group { name: "elm/entry/preedit/default";
1736         parts {
1737             part { name: "bg";
1738                 type: RECT;
1739                 mouse_events: 0;
1740                 description { state: "default" 0.0;
1741                     color: 128 128 128 255;
1742                 }
1743             }
1744         }
1745    }
1746
1747
1748 #define MAGNIFIER_SCALE 1.2
1749
1750         group { name: "elm/entry/magnifier/fill-width";
1751                 data.item: "height" MAGNIFIER_HEIGHT_FILL;
1752                 data.item: "scale" MAGNIFIER_SCALE;
1753                 images {
1754                   image: "magnifier_noarrow.png" COMP;
1755                   image: "magnifier_noarrow_line.png" COMP;
1756                 }
1757                 parts {
1758                         part { name: "bg";
1759                                 mouse_events: 0;
1760                                 scale: 1;
1761                                 description { state: "default" 0.0;
1762                                         align: 0.5 0.0;
1763                                         rel1 { offset: -20 -10; }
1764                                         rel2 { offset: 22 15; }
1765                                         image {
1766                                                 normal: "magnifier_noarrow.png";
1767                                                 border: 25 25 35 25;
1768                                         }
1769                                         image.middle: SOLID;
1770                                         fill.smooth: 0;
1771                                 }
1772                         }
1773                         part { name: "swallow";
1774                                 type: SWALLOW;
1775                                 mouse_events: 0;
1776                                 scale: 1;
1777                                 description { state: "default" 0.0;
1778                                         align: 0.0 0.0;
1779                                         rel1 {
1780                                                 to: "bg";
1781                                                 offset: 18 18;
1782                                         }
1783                                         rel2 {
1784                                                 to: "bg";
1785                                                 offset: -20 -20;
1786                                         }
1787                                 }
1788                         }
1789                         part { name: "outline";
1790                                 mouse_events: 0;
1791                                 scale: 1;
1792                                 description { state: "default" 0.0;
1793                                         visible: 0;
1794                                         align: 0.0 0.0;
1795                                         rel1 { to: "bg"; offset: 0 0; }
1796                                         rel2 { to: "bg"; offset: -1 -1; }
1797                                         image {
1798                                                 normal: "magnifier_noarrow_line.png";
1799                                                 border: 25 25 35 25;
1800                                         }
1801                                         image.middle: SOLID;
1802                                         fill.smooth: 0;
1803                                 }
1804                         }
1805                 }
1806         }
1807
1808
1809         group { name: "elm/entry/magnifier/fixed-size";
1810                 data.item: "height" MAGNIFIER_HEIGHT_FIXED;
1811                 data.item: "scale" MAGNIFIER_SCALE;
1812                 images {
1813                   image: "magnifier.png" COMP;
1814                   image: "magnifier_line.png" COMP;
1815                 }
1816                 parts {
1817                         part { name: "bg";
1818                                 mouse_events: 0;
1819                                 scale: 1;
1820                                 description { state: "default" 0.0;
1821                         fixed: 1 1;
1822                                         min: MAGNIFIER_WIDTH_FIXED MAGNIFIER_HEIGHT_FIXED;
1823                                         align: 0.5 0.0;
1824                                         rel1.offset: 0 8;
1825                                         image {
1826                                                 normal: "magnifier.png";
1827                                                 border: 12 14 14 20;
1828                                         }
1829                                         image.middle: SOLID;
1830                                         fill.smooth: 0;
1831                                 }
1832                         }
1833                         part { name: "swallow";
1834                                 type: SWALLOW;
1835                                 mouse_events: 0;
1836                                 scale: 1;
1837                                 description { state: "default" 0.0;
1838                         fixed: 1 1;
1839                                         align: 0.0 0.0;
1840                                         rel1 {
1841                                                 to: "bg";
1842                                                 offset: 12 14;
1843                                         }
1844                                         rel2 {
1845                                                 to: "bg";
1846                                                 offset: -14 -20;
1847                                         }
1848                                 }
1849                         }
1850                         part { name: "outline";
1851                                 mouse_events: 0;
1852                                 scale: 1;
1853                                 description { state: "default" 0.0;
1854                         fixed: 1 1;
1855                                         visible: 0;
1856                                         align: 0.0 0.0;
1857                                         rel1 { to: "bg"; offset: 0 0; }
1858                                         rel2 { to: "bg"; offset: -1 -1; }
1859                                         image {
1860                                                 normal: "magnifier_line.png";
1861                                                 border: 12 14 14 20;
1862                                         }
1863                                         image.middle: SOLID;
1864                                         fill.smooth: 0;
1865                                 }
1866                         }
1867                 }
1868         }
1869
1870         group { name: "elm/entry/matchlist/default";
1871                 data.item: "max_height" "230";
1872                 parts {
1873                         part { name: "base";
1874                                 type: RECT;
1875                                 scale : 1;
1876                                 mouse_events: 1;
1877                                 repeat_events: 1;
1878                                 description { state: "default" 0.0;
1879                                         color: 0 0 0 0;
1880                                         rel1 {
1881                                                 relative: 0.0 0.0;
1882                                                 offset: 0 20;
1883                                         }
1884                                         rel2 {
1885                                                 relative: 1.0 1.0;
1886                                                 offset: 0 20;
1887                                         }
1888                                 }
1889                         }
1890                         part { name: "elm.swallow.content";
1891                                 type: SWALLOW;
1892                                 description { state: "default" 0.0;
1893                                         align: 0.0 0.0;
1894                                         rel1 {
1895                                                 to: "base";
1896                                         }
1897                                         rel2 {
1898                                                 to: "base";
1899                                         }
1900                                 }
1901                         }
1902                 }
1903         }
1904
1905 /* Entry's bubble style */
1906
1907       styles
1908         {
1909            style { name: "entry_bubble_date_area_textblock_style";
1910                         base: "font=SLP: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";
1911               tag:  "br" "\n";
1912               tag:  "ps" "ps";
1913               tag:  "tab" "\t";
1914               tag:  "em" "+ font=SLP:style=Oblique";
1915               tag:  "b" "+ font=SLP:style=Bold";
1916               tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1917               tag:  "hilight" "+ font=SLP:style=Bold";
1918               tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC;
1919               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;
1920            }
1921         }
1922
1923    group { name: "elm/entry/base/readmessage";
1924       data.item: "default_font_size" "24";
1925       data.item: "min_font_size" "8";
1926       data.item: "max_font_size" "60";
1927       data {
1928          item: context_menu_orientation "horizontal";
1929       }
1930       parts {
1931          part {
1932             name: "elm.rect.left.pad";
1933             type: RECT;
1934             scale: 1;
1935             description {
1936                state: "default" 0.0;
1937                min: ENTRY_BUBBLE_EX_PAD 0;
1938                fixed: 1 0;
1939                align: 0.0 0.0;
1940                color: 0 0 0 0;
1941                rel2.relative: 0.0 1.0;
1942             }
1943          }
1944          part {
1945             name: "elm.rect.right.pad";
1946             type: RECT;
1947             scale: 1;
1948             description {
1949                state: "default" 0.0;
1950                min: ENTRY_BUBBLE_IX_PAD 0;
1951                fixed: 1 0;
1952                align: 0.0 0.0;
1953                color: 0 0 0 0;
1954                rel1 { relative: 1.0 0.0; to: "elm.text"; }
1955                rel2.to: "elm.text";
1956             }
1957          }
1958          part {
1959            name: "elm.rect.top.pad";
1960            type: RECT;
1961            scale: 1;
1962            description {
1963               state: "default" 0.0;
1964               min: 0 ENTRY_BUBBLE_Y_PAD;
1965               fixed: 0 1;
1966               align: 0.0 0.0;
1967               color: 0 0 0 0;
1968               rel2.relative: 1.0 0.0;
1969             }
1970          }
1971          part {
1972            name: "elm.rect.bottom.pad";
1973            type: RECT;
1974            scale: 1;
1975            description {
1976               state: "default" 0.0;
1977               min: 0 ENTRY_BUBBLE_Y_PAD;
1978               fixed: 0 1;
1979               align: 0.0 1.0;
1980               color: 0 0 0 0;
1981               rel1.relative: 0.0 1.0;
1982             }
1983          }
1984          part {
1985             name: "elm.image.bg";
1986             type: IMAGE;
1987             scale: 1;
1988             description {
1989                state: "default" 0.0;
1990                rel2.to_x: "elm.rect.right.pad";
1991                image {
1992                   normal: "00_MessageBubble_BG_receive.png";
1993                   border: 1 20 13 20;
1994                   border_scale: 1;
1995                }
1996             }
1997          }
1998          part { name: "elm.text";
1999             type: TEXTBLOCK;
2000             mouse_events: 1;
2001             scale: 1;
2002             entry_mode: EDITABLE;
2003             select_mode: BLOCK_HANDLE;
2004             //cursor_mode: BEFORE;
2005             multiline: 1;
2006             source: "elm/entry/selection/default"; // selection under
2007             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
2008             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
2009             source4: "elm/entry/cursor/default"; // cursorover
2010             source5: "elm/entry/anchor/default"; // anchor under
2011 //          source6: "X"; // anchor over
2012             description { state: "default" 0.0;
2013                fixed: 1 0;
2014                align: 0.0 0.0;
2015                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2016                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
2017                text {
2018                   style: "entry_textblock_style";
2019                   min: 0 1;
2020                   max: 1 0;
2021                }
2022             }
2023             description { state: "disabled" 0.0;
2024                inherit: "default" 0.0;
2025                text {
2026                   style: "entry_textblock_disabled_style";
2027                }
2028             }
2029          }
2030       }
2031       programs {
2032          program { name: "focus";
2033             signal: "load";
2034             source: "";
2035             action: FOCUS_SET;
2036             target: "elm.text";
2037          }
2038          program { name: "disable";
2039             signal: "elm,state,disabled";
2040             source: "elm";
2041             action: STATE_SET "disabled" 0.0;
2042             target: "elm.text";
2043          }
2044          program { name: "enable";
2045             signal: "elm,state,enabled";
2046             source: "elm";
2047             action: STATE_SET "default" 0.0;
2048             target: "elm.text";
2049          }
2050       }
2051    }
2052
2053    group { name: "elm/entry/base-noedit/readmessage";
2054       data.item: "default_font_size" "24";
2055       data.item: "min_font_size" "8";
2056       data.item: "max_font_size" "60";
2057       data {
2058          item: context_menu_orientation "horizontal";
2059       }
2060       parts {
2061          part {
2062             name: "elm.rect.left.pad";
2063                 type: RECT;
2064                 scale: 1;
2065                 description {
2066                    state: "default" 0.0;
2067                min: ENTRY_BUBBLE_EX_PAD 0;
2068                fixed: 1 0;
2069                    align: 0.0 0.0;
2070                color: 0 0 0 0;
2071                    rel2.relative: 0.0 1.0;
2072                }
2073                description {
2074                state: "callerid_on" 0.0;
2075                inherit: "default" 0.0;
2076                    min: ENTRY_BUBBLE_EX_CALLERID_PAD 0;
2077                }
2078          }
2079          part {
2080             name: "elm.rect.right.pad";
2081             type: RECT;
2082             scale: 1;
2083             description {
2084                state: "default" 0.0;
2085                min: ENTRY_BUBBLE_IX_PAD 0;
2086                fixed: 1 0;
2087                align: 0.0 0.0;
2088                color: 0 0 0 0;
2089                rel1 { relative: 1.0 0.0; to: "elm.text"; }
2090                rel2.to: "elm.text";
2091             }
2092          }
2093          part {
2094            name: "elm.rect.top.pad";
2095            type: RECT;
2096            scale: 1;
2097            description {
2098               state: "default" 0.0;
2099               min: 0 ENTRY_BUBBLE_Y_PAD;
2100               fixed: 0 1;
2101               align: 0.0 0.0;
2102               color: 0 0 0 0;
2103               rel2.relative: 1.0 0.0;
2104            }
2105          }
2106          part {
2107            name: "elm.rect.topleft.pad";
2108            type: RECT;
2109            scale: 1;
2110            description {
2111               state: "default" 0.0;
2112               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2113               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2114               fixed: 1 1;
2115               align: 0.0 0.0;
2116               visible: 0;
2117            }
2118          }
2119          part {
2120            name: "elm.rect.bottom.pad";
2121            type: RECT;
2122            scale: 1;
2123            description {
2124               state: "default" 0.0;
2125               min: 0 ENTRY_BUBBLE_BOTTOM_PAD;
2126               fixed: 0 1;
2127               align: 0.0 1.0;
2128               color: 0 0 0 0;
2129               rel1.relative: 0.0 1.0;
2130            }
2131          }
2132          part {
2133            name: "elm.rect.bottomleft.pad";
2134            type: RECT;
2135            scale: 1;
2136            description {
2137               state: "default" 0.0;
2138               min: ENTRY_BUBBLE_BOTTOMRIGHT_PAD  2;
2139               max: ENTRY_BUBBLE_BOTTOMRIGHT_PAD 2;
2140               align: 0.0 1.0;
2141                           visible: 0;
2142            }
2143          }
2144          part {
2145            name: "elm.rect.groupchat.pad";
2146            type: RECT;
2147            scale: 1;
2148            description {
2149               state: "default" 0.0;
2150               min: 46 30;
2151               max: 46 30;
2152               align: 0.0 0.0;
2153                           visible: 0;
2154            }
2155            description {
2156               state: "callerid_on" 0.0;
2157               inherit: "default" 0.0;
2158               min: 130 30;
2159               max: 130 30;
2160            }
2161          }
2162          part {
2163            name: "elm.rect.groupchat.text.pad";
2164            type: RECT;
2165            scale: 1;
2166            description {
2167               state: "default" 0.0;
2168               min: 120 14;
2169               max: 120 14;
2170               align: 0.0 0.0;
2171                           visible: 0;
2172                           rel1 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
2173            }
2174          }
2175          part { name: "elm.text.groupchat";
2176             type: TEXT;
2177             scale: 1;
2178             description { state: "default" 0.0;
2179                align: 0.0 0.0;
2180                fixed: 1 1;
2181                text {
2182                   font: "SLP:style=Roman";
2183                   size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
2184                   min: 1 0;
2185                                   align: 0.0 0.5;
2186                   text_class: "slp_roman";
2187                }
2188                visible: 1;
2189                color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
2190                rel1 { relative: 1.0 0.0; to: "elm.rect.groupchat.pad"; }
2191                rel2.to_y: "elm.rect.groupchat.pad";
2192             }
2193          }
2194          part {
2195             name: "elm.image.bg";
2196             type: IMAGE;
2197             scale: 1;
2198             description {
2199                state: "default" 0.0;
2200                rel2.to_x: "elm.rect.right.pad";
2201                image {
2202                   normal: "00_MessageBubble_BG_receive.png";
2203                   border: ENTRY_BUBBLE_RECEV_BG_BORDER_INC;
2204                   border_scale: 1;
2205                }
2206             }
2207             description {
2208                state: "callerid_on" 0.0;
2209            inherit: "default" 0.0;
2210            rel1 { relative: 1.0 0.0; to_x: "elm.rect.bottomleft.pad"; }
2211             }
2212             description {
2213                state: "callerid_groupchat" 0.0;
2214            inherit: "default" 0.0;
2215            rel1 { relative: 1.0 1.0; to_x: "elm.rect.bottomleft.pad"; to_y:"elm.rect.groupchat.pad"; }
2216             }
2217             description {
2218                state: "groupchat_on" 0.0;
2219            inherit: "default" 0.0;
2220            rel1 { relative: 0.0 1.0; to_y:"elm.rect.groupchat.pad"; }
2221             }
2222          }
2223          // it's temporary blocked for prepare entry's signal feature
2224          /*
2225          part {
2226            name: "elm.text.subject";
2227            type: TEXTBLOCK;
2228            scale: 1;
2229            description {
2230               state: "default" 0.0;
2231               align: 0.0 0.0;
2232               text {
2233                  style: "entry_textblock_style";
2234                  min: 0 1;
2235               }
2236               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2237               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
2238            }
2239          }
2240          */
2241
2242          part {
2243            name: "elm.rect.subject.line";
2244            type: RECT;
2245            scale: 1;
2246            description {
2247               state: "default" 0.0;
2248               visible: 0;
2249               min: 0 1;
2250               align: 0.0 0.0;
2251               color: 0 0 0 255;
2252               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2253               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
2254            }
2255          }
2256          part {
2257             name: "elm.swallow.callerid";
2258             type: SWALLOW;
2259             scale: 1;
2260             description {
2261                state: "default" 0.0;
2262                min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
2263                max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
2264                fixed: 1 1;
2265                align: 0.0 0.0;
2266                visible: 0;
2267                rel1 { relative: ENTRY_BUBBLE_RECEV_CALLERID_REL1_INC; to: "elm.rect.topleft.pad"; to_y: "elm.rect.topleft.pad"; }
2268                rel2 { relative: ENTRY_BUBBLE_RECEV_CALLERID_REL2_INC; to_y: "elm.rect.bottom.pad"; }
2269             }
2270             description { state: "callerid_on" 0.0;
2271                inherit: "default" 0.0;
2272                visible: 1;
2273             }
2274          }
2275          part {
2276             name: "elm.rect.callerid.pad";
2277             type: RECT;
2278             scale: 1;
2279             description {
2280                state: "default" 0.0;
2281                min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2282                max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2283                fixed: 1 1;
2284                align: 0.0 0.0;
2285                visible: 0;
2286                rel1 { relative: 1.0 1.0; to: "elm.swallow.callerid"; to_y: "elm.rect.top.pad"; }
2287                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
2288             }
2289          }
2290          part { name: "elm.text";
2291             type: TEXTBLOCK;
2292             mouse_events: 1;
2293             scale: 1;
2294             entry_mode: PLAIN;
2295             select_mode: BLOCK_HANDLE;
2296             //cursor_mode: BEFORE;
2297             multiline: 1;
2298             source: "elm/entry/selection/default"; // selection under
2299             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
2300             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
2301             source5: "elm/entry/anchor/default"; // anchor under
2302             description {
2303                state: "default" 0.0;
2304                fixed: 1 0;
2305                align: 0.0 0.0;
2306                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.subject.line"; }
2307                rel2 { relative: 1.0 1.0; to_y: "elm.rect.subject.line"; }
2308                text {
2309                   style: "entry_textblock_style";
2310                   min: 0 1;
2311                   max: 1 0;
2312                }
2313             }
2314                 /* callerid only */
2315             description { state: "callerid_on" 0.0;
2316                inherit: "default" 0.0;
2317                rel1 { relative: 1.0 1.0; to_x: ENTRY_BUBBLE_READ_TEXT_CALLID_REL1_X_INC; to_y: "elm.rect.subject.line"; }
2318                rel2 { relative: 1.0 1.0; to_y: "elm.rect.subject.line"; }
2319             }
2320                 /* callerid and groupchat */
2321             description { state: "callerid_groupchat" 0.0;
2322                inherit: "default" 0.0;
2323                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; }
2324                rel2 { relative: 1.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
2325             }
2326                 /* groupchat only */
2327             description { state: "groupchat_on" 0.0;
2328                inherit: "default" 0.0;
2329                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
2330                rel2 { relative: 1.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
2331             }
2332             description { state: "disabled" 0.0;
2333                inherit: "default" 0.0;
2334                text {
2335                   style: "entry_textblock_disabled_style";
2336                }
2337             }
2338          }
2339          part {
2340             name: "elm.rect.status.pad";
2341             type: RECT;
2342             scale: 1;
2343             description {
2344                state: "default" 0.0;
2345                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
2346                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
2347                fixed: 1 1;
2348                align: 0.0 1.0;
2349                visible: 0;
2350                            color: 255 0 0 255;
2351                rel1 { relative: ENTRY_BUBBLE_READ_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
2352                rel2 { relative: 1.0 1.0; to_y: "elm.rect.bottom.pad"; }
2353             }
2354          }
2355          part {
2356             name: "elm.rect.time.pad";
2357             type: RECT;
2358             scale: 1;
2359             description {
2360                state: "default" 0.0;
2361                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
2362                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
2363                fixed: 1 1;
2364                align: 0.0 0.0;
2365                visible: 0;
2366                            color: 0 255 0 255;
2367                rel1.to: "elm.rect.status.pad";
2368                rel2 { relative: 1.0 1.0; to_y: "elm.rect.bottom.pad"; }
2369             }
2370          }
2371          part { name: "elm.text.status";
2372             type: TEXT;
2373             scale: 1;
2374             description { state: "default" 0.0;
2375                align: 0.0 1.0;
2376                fixed: 1 1;
2377                text {
2378                   font: "SLP:style=Roman";
2379                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
2380                   min: 1 0;
2381                   text_class: "slp_roman";
2382                }
2383                visible: 1;
2384                color: ENTRY_BUBBLE_READ_STATUS_TIME_COLOR_INC;
2385                rel1 { relative: ENTRY_BUBBLE_READ_STATUS_REL_INC; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
2386                rel2 { relative: ENTRY_BUBBLE_READ_STATUS_REL_INC; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
2387             }
2388             description { state: "disabled" 0.0;
2389                inherit: "default" 0.0;
2390                visible: 0;
2391             }
2392          }
2393          part { name: "elm.text.time";
2394             type: TEXT;
2395             scale: 1;
2396             description { state: "default" 0.0;
2397                align: 0.0 0.0;
2398                fixed: 1 1;
2399                text {
2400                   font: "SLP:style=Roman";
2401                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
2402                   min: 1 0;
2403                   text_class: "slp_roman";
2404                }
2405                visible: 1;
2406                color: ENTRY_BUBBLE_READ_STATUS_TIME_COLOR_INC;
2407                rel1 { relative: ENTRY_BUBBLE_READ_TIME_REL_INC; to_x: "elm.rect.time.pad"; to_y: "elm.rect.time.pad"; }
2408                rel2 { relative: ENTRY_BUBBLE_READ_TIME_REL_INC; to_x: "elm.rect.time.pad"; to_y: "elm.rect.time.pad"; }
2409             }
2410             description { state: "disabled" 0.0;
2411                inherit: "default" 0.0;
2412                visible: 0;
2413             }
2414          }
2415          part {
2416             name: "elm.swallow.icon1";
2417             type: SWALLOW;
2418             scale: 1;
2419             description {
2420                state: "default" 0.0;
2421                min: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
2422                max: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
2423                fixed: 1 1;
2424                align: 0.0 1.0;
2425                visible: 0;
2426                rel1 { relative: 1.5 0.3; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
2427                rel2 { relative: 1.0 0.3; to_y: "elm.rect.bottom.pad"; }
2428             }
2429             description { state: "enabled" 0.0;
2430                inherit: "default" 0.0;
2431                visible: 1;
2432             }
2433          }
2434          part {
2435            name: "elm.swallow.end";
2436            type: SWALLOW;
2437            scale: 1;
2438            description { state: "default" 0.0;
2439               align: 0.0 0.0;
2440               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.text"; }
2441               rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
2442            }
2443          }
2444       }
2445       programs {
2446          program { name: "focus";
2447             signal: "load";
2448             source: "";
2449             action: FOCUS_SET;
2450             target: "elm.text";
2451          }
2452          program { name: "disable";
2453             signal: "elm,state,disabled";
2454             source: "elm";
2455             action: STATE_SET "disabled" 0.0;
2456             target: "elm.text";
2457          }
2458          program { name: "enable";
2459             signal: "elm,state,enabled";
2460             source: "elm";
2461             action: STATE_SET "default" 0.0;
2462             target: "elm.text";
2463          }
2464          program { name: "go_callerid_on";
2465             signal: "elm,state,callerid,enabled";
2466             source: "elm";
2467          script {
2468             new st[31];
2469             new Float:vl;
2470             get_state(PART:"elm.text", st, 30, vl);
2471             if (!strcmp(st, "default")) {
2472               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
2473               set_state(PART:"elm.text", "callerid_on", 0.0);
2474                         }
2475             else if (!strcmp(st, "groupchat_on")) {
2476               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
2477               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
2478                         }
2479
2480             set_state(PART:"elm.swallow.callerid", "callerid_on", 0.0);
2481             set_state(PART:"elm.rect.left.pad", "callerid_on", 0.0);
2482             set_state(PART:"elm.rect.groupchat.pad", "callerid_on", 0.0);
2483          }
2484          }
2485          program { name: "go_callerid_off";
2486             signal: "elm,state,callerid,disabled";
2487             source: "elm";
2488          script {
2489             new st[31];
2490             new Float:vl;
2491             get_state(PART:"elm.text", st, 30, vl);
2492             if (!strcmp(st, "callerid_groupchat")) {
2493               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
2494               set_state(PART:"elm.text", "groupchat_on", 0.0);
2495                         }
2496             else {
2497               set_state(PART:"elm.image.bg", "default", 0.0);
2498               set_state(PART:"elm.text", "default", 0.0);
2499                         }
2500
2501             set_state(PART:"elm.swallow.callerid", "default", 0.0);
2502             set_state(PART:"elm.rect.groupchat.pad", "default", 0.0);
2503                  }
2504          }
2505 /* groupchat - since white-hd theme */
2506 #if ENTRY_BUBBLE_GROUPCHART_ENABLE_INC
2507          program { name: "go_groupchat_on";
2508             signal: "elm,state,groupchat,enabled";
2509             source: "elm";
2510          script {
2511             new st[31];
2512             new Float:vl;
2513             get_state(PART:"elm.text", st, 30, vl);
2514             if (!strcmp(st, "default")) {
2515               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
2516               set_state(PART:"elm.text", "groupchat_on", 0.0);
2517                         }
2518             else if (!strcmp(st, "callerid_on")) {
2519               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
2520               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
2521                         }
2522          }
2523          }
2524 #endif
2525          program { name: "go_textstatus_on";
2526             signal: "elm,state,text,status,enabled";
2527             source: "elm";
2528             action: STATE_SET "default" 0.0;
2529             target: "elm.text.time";
2530             target: "elm.text.status";
2531             after: "go_contentstatus_off";
2532          }
2533          program { name: "go_textstatus_off";
2534             signal: "elm,state,text,status,disbled";
2535             source: "elm";
2536             action: STATE_SET "disabled" 0.0;
2537             target: "elm.text.time";
2538             target: "elm.text.status";
2539          }
2540          program { name: "go_contentstatus_on";
2541             signal: "elm,state,content,status,enabled";
2542             source: "elm";
2543             action: STATE_SET "enabled" 0.0;
2544             target: "elm.swallow.icon1";
2545             after: "go_textstatus_off";
2546          }
2547          program { name: "go_contentstatus_off";
2548             signal: "elm,state,content,status,disabled";
2549             source: "elm";
2550             action: STATE_SET "default" 0.0;
2551             target: "elm.swallow.icon1";
2552          }
2553       }
2554    }
2555
2556    group { name: "elm/entry/base-noedit-charwrap/readmessage";
2557       data.item: "default_font_size" "24";
2558       data.item: "min_font_size" "8";
2559       data.item: "max_font_size" "60";
2560       data {
2561          item: context_menu_orientation "horizontal";
2562       }
2563       parts {
2564          part {
2565             name: "elm.rect.left.pad";
2566             type: RECT;
2567             scale: 1;
2568             description {
2569                state: "default" 0.0;
2570                min: ENTRY_BUBBLE_EX_PAD 0;
2571                fixed: 1 0;
2572                align: 0.0 0.0;
2573                color: 0 0 0 0;
2574                rel2.relative: 0.0 1.0;
2575             }
2576          }
2577          part {
2578             name: "elm.rect.right.pad";
2579             type: RECT;
2580             scale: 1;
2581             description {
2582                state: "default" 0.0;
2583                min: ENTRY_BUBBLE_IX_PAD 0;
2584                fixed: 1 0;
2585                align: 0.0 0.0;
2586                color: 0 0 0 0;
2587                rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
2588                rel2.to_x: "elm.text";
2589             }
2590          }
2591          part {
2592            name: "elm.rect.top.pad";
2593            type: RECT;
2594            scale: 1;
2595            description {
2596               state: "default" 0.0;
2597               min: 0 ENTRY_BUBBLE_Y_PAD;
2598               fixed: 0 1;
2599               align: 0.0 0.0;
2600               color: 0 0 0 0;
2601               rel2.relative: 1.0 0.0;
2602            }
2603          }
2604          part {
2605            name: "elm.rect.bottom.pad";
2606            type: RECT;
2607            scale: 1;
2608            description {
2609               state: "default" 0.0;
2610               min: 0 ENTRY_BUBBLE_Y_PAD;
2611               fixed: 0 1;
2612               align: 0.0 1.0;
2613               color: 0 0 0 0;
2614               rel1.relative: 0.0 1.0;
2615            }
2616          }
2617          part {
2618             name: "elm.image.bg";
2619             type: IMAGE;
2620             scale: 1;
2621             description {
2622                state: "default" 0.0;
2623                rel2.to_x: "elm.rect.right.pad";
2624                image {
2625                   normal: "00_MessageBubble_BG_receive.png";
2626                   border: 1 20 13 20;
2627                   border_scale: 1;
2628                }
2629             }
2630          }
2631          part { name: "elm.text";
2632             type: TEXTBLOCK;
2633             mouse_events: 1;
2634             scale: 1;
2635             entry_mode: PLAIN;
2636             select_mode: BLOCK_HANDLE;
2637             //cursor_mode: BEFORE;
2638             multiline: 1;
2639             source: "elm/entry/selection/default"; // selection under
2640             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
2641             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
2642             source5: "elm/entry/anchor/default"; // anchor under
2643             description { state: "default" 0.0;
2644                fixed: 1 0;
2645                align: 0.0 0.0;
2646                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2647                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
2648                text {
2649                   style: "entry_textblock_style_charwrap";
2650                   min: 0 1;
2651                   max: 1 0;
2652                }
2653             }
2654             description { state: "disabled" 0.0;
2655                inherit: "default" 0.0;
2656                text {
2657                   style: "entry_textblock_disabled_style_charwrap";
2658                }
2659             }
2660          }
2661       }
2662       programs {
2663          program { name: "focus";
2664             signal: "load";
2665             source: "";
2666             action: FOCUS_SET;
2667             target: "elm.text";
2668          }
2669          program { name: "disable";
2670             signal: "elm,state,disabled";
2671             source: "elm";
2672             action: STATE_SET "disabled" 0.0;
2673             target: "elm.text";
2674          }
2675          program { name: "enable";
2676             signal: "elm,state,enabled";
2677             source: "elm";
2678             action: STATE_SET "default" 0.0;
2679             target: "elm.text";
2680          }
2681       }
2682    }
2683
2684    group { name: "elm/entry/base/sentmessage";
2685       data.item: "default_font_size" "24";
2686       data.item: "min_font_size" "8";
2687       data.item: "max_font_size" "60";
2688       data {
2689          item: context_menu_orientation "horizontal";
2690       }
2691       parts {
2692          part {
2693             name: "elm.rect.right.pad";
2694             type: RECT;
2695             scale: 1;
2696             description {
2697                state: "default" 0.0;
2698                min: ENTRY_BUBBLE_EX_PAD 0;
2699                fixed: 1 0;
2700                align: 1.0 0.0;
2701                color: 0 0 0 0;
2702                rel1.relative: 1.0 0.0;
2703             }
2704          }
2705          part {
2706             name: "elm.rect.left.pad";
2707             type: RECT;
2708             scale: 1;
2709             description {
2710                state: "default" 0.0;
2711                min: ENTRY_BUBBLE_IX_PAD 0;
2712                fixed: 1 0;
2713                align: 1.0 0.0;
2714                color: 0 0 0 0;
2715                rel1 { relative: 0.0 0.0; to: "elm.text"; }
2716                rel2 { relative: 0.0 1.0; to: "elm.text"; }
2717             }
2718          }
2719          part {
2720            name: "elm.rect.top.pad";
2721            type: RECT;
2722            scale: 1;
2723            description {
2724               state: "default" 0.0;
2725               min: 0 ENTRY_BUBBLE_Y_PAD;
2726               fixed: 0 1;
2727               align: 0.0 0.0;
2728               color: 0 0 0 0;
2729               rel2.relative: 1.0 0.0;
2730            }
2731          }
2732          part {
2733            name: "elm.rect.bottom.pad";
2734            type: RECT;
2735            scale: 1;
2736            description {
2737               state: "default" 0.0;
2738               min: 0 ENTRY_BUBBLE_Y_PAD;
2739               fixed: 0 1;
2740               align: 0.0 1.0;
2741               color: 0 0 0 0;
2742               rel1.relative: 0.0 1.0;
2743            }
2744          }
2745          part {
2746             name: "elm.image.bg";
2747             type: IMAGE;
2748             scale: 1;
2749             description {
2750                state: "default" 0.0;
2751                rel1.to_x: "elm.rect.left.pad";
2752                image {
2753                   normal: "00_MessageBubble_BG_send.png";
2754                   border: 20 1 13 20;
2755                   border_scale: 1;
2756                }
2757             }
2758          }
2759          part { name: "elm.text";
2760             type: TEXTBLOCK;
2761             mouse_events: 1;
2762             scale: 1;
2763             entry_mode: EDITABLE;
2764             select_mode: BLOCK_HANDLE;
2765             //cursor_mode: BEFORE;
2766             multiline: 1;
2767             source: "elm/entry/selection/default"; // selection under
2768             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
2769             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
2770             source4: "elm/entry/cursor/default"; // cursorover
2771             source5: "elm/entry/anchor/default"; // anchor under
2772 //          source6: "X"; // anchor over
2773             description { state: "default" 0.0;
2774                fixed: 1 0;
2775                align: 1.0 0.0;
2776                rel1 { relative: 0.0 1.0; to_y: "elm.rect.top.pad";}
2777                rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
2778                text {
2779                   style: "entry_textblock_style";
2780                   min: 0 1;
2781                   max: 1 0;
2782                }
2783             }
2784             description { state: "disabled" 0.0;
2785                inherit: "default" 0.0;
2786                text {
2787                   style: "entry_textblock_disabled_style";
2788                }
2789             }
2790          }
2791       }
2792       programs {
2793          program { name: "focus";
2794             signal: "load";
2795             source: "";
2796             action: FOCUS_SET;
2797             target: "elm.text";
2798          }
2799          program { name: "disable";
2800             signal: "elm,state,disabled";
2801             source: "elm";
2802             action: STATE_SET "disabled" 0.0;
2803             target: "elm.text";
2804          }
2805          program { name: "enable";
2806             signal: "elm,state,enabled";
2807             source: "elm";
2808             action: STATE_SET "default" 0.0;
2809             target: "elm.text";
2810          }
2811       }
2812    }
2813
2814    group { name: "elm/entry/base-noedit/sentmessage";
2815       data.item: "default_font_size" "24";
2816       data.item: "min_font_size" "8";
2817       data.item: "max_font_size" "60";
2818       data {
2819          item: context_menu_orientation "horizontal";
2820       }
2821       parts {
2822          part {
2823            name: "elm.rect.right.pad";
2824                type: RECT;
2825                scale: 1;
2826                description {
2827                   state: "default" 0.0;
2828                   min: ENTRY_BUBBLE_EX_PAD 0;
2829               fixed: 1 0;
2830                   align: 1.0 0.0;
2831               color: 0 0 0 0;
2832               rel1.relative: 1.0 0.0;
2833                }
2834                description {
2835                state: "callerid_on" 0.0;
2836                inherit: "default" 0.0;
2837                    min: ENTRY_BUBBLE_EX_CALLERID_PAD 0;
2838                }
2839          }
2840          part {
2841             name: "elm.rect.left.pad";
2842             type: RECT;
2843             scale: 1;
2844             description {
2845                state: "default" 0.0;
2846                min: ENTRY_BUBBLE_IX_PAD 0;
2847                fixed: 1 0;
2848                align: 1.0 0.0;
2849                color: 0 0 0 0;
2850                rel1 { relative: 0.0 0.0; to: "elm.text"; }
2851                rel2 { relative: 0.0 1.0; to: "elm.text"; }
2852             }
2853          }
2854          part {
2855            name: "elm.rect.topright.pad";
2856            type: RECT;
2857            scale: 1;
2858            description {
2859               state: "default" 0.0;
2860               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2861               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2862               align: 1.0 0.0;
2863               visible: 0;
2864               rel1.relative: 1.0 0.0;
2865            }
2866          }
2867          part {
2868            name: "elm.rect.top.pad";
2869            type: RECT;
2870            scale: 1;
2871            description {
2872               state: "default" 0.0;
2873               min: 0 ENTRY_BUBBLE_Y_PAD;
2874               fixed: 0 1;
2875               align: 0.0 0.0;
2876               color: 0 0 0 0;
2877               rel2.relative: 1.0 0.0;
2878            }
2879          }
2880          part {
2881            name: "elm.rect.bottom.pad";
2882            type: RECT;
2883            scale: 1;
2884            description {
2885               state: "default" 0.0;
2886               min: 0 ENTRY_BUBBLE_BOTTOM_PAD;
2887               fixed: 0 1;
2888               align: 0.0 1.0;
2889               color: 0 0 0 0;
2890               rel1.relative: 0.0 1.0;
2891            }
2892          }
2893          part {
2894            name: "elm.rect.bottomright.pad";
2895            type: RECT;
2896            scale: 1;
2897            description {
2898               state: "default" 0.0;
2899               min: ENTRY_BUBBLE_BOTTOMRIGHT_PAD  2;
2900               max: ENTRY_BUBBLE_BOTTOMRIGHT_PAD 2;
2901               align: 1.0 1.0;
2902                           visible: 0;
2903            }
2904          }
2905          part {
2906            name: "elm.rect.groupchat.pad";
2907            type: RECT;
2908            scale: 1;
2909            description {
2910               state: "default" 0.0;
2911               min: 46 30;
2912               max: 46 30;
2913               align: 1.0 0.0;
2914                           visible: 0;
2915            }
2916            description {
2917               state: "callerid_on" 0.0;
2918               inherit: "default" 0.0;
2919               min: 130 30;
2920               max: 130 30;
2921            }
2922          }
2923          part {
2924            name: "elm.rect.groupchat.text.pad";
2925            type: RECT;
2926            scale: 1;
2927            description {
2928               state: "default" 0.0;
2929               min: 120 14;
2930               max: 120 14;
2931               align: 0.0 0.0;
2932                           visible: 0;
2933                           rel1 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
2934            }
2935          }
2936          part { name: "elm.text.groupchat";
2937             type: TEXT;
2938             scale: 1;
2939             description { state: "default" 0.0;
2940                align: 1.0 1.0;
2941                fixed: 1 1;
2942                text {
2943                   font: "SLP:style=Roman";
2944                   size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
2945                   min: 1 0;
2946                                   align: 1.0 0.5;
2947                   text_class: "slp_roman";
2948                }
2949                visible: 1;
2950                color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
2951                rel2 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
2952             }
2953          }
2954          part {
2955             name: "elm.image.bg";
2956             type: IMAGE;
2957             scale: 1;
2958             description {
2959                state: "default" 0.0;
2960            rel1.to_x: "elm.rect.left.pad";
2961                image {
2962                       normal: "00_MessageBubble_BG_send.png";
2963                       border: ENTRY_BUBBLE_SENT_BG_BORDER_INC;
2964                       border_scale: 1;
2965                }
2966             }
2967             description {
2968                state: "callerid_on" 0.0;
2969            inherit: "default" 0.0;
2970            rel2 { relative: 0.0 1.0; to: "elm.rect.bottomright.pad"; }
2971             }
2972             description {
2973                state: "callerid_groupchat" 0.0;
2974            inherit: "default" 0.0;
2975                    rel1 { relative: 0.0 1.0; to_x:"elm.rect.left.pad"; to_y:"elm.rect.groupchat.pad"; }
2976            rel2 { relative: 0.0 1.0; to: "elm.rect.bottomright.pad"; }
2977             }
2978             description {
2979                state: "groupchat_on" 0.0;
2980            inherit: "default" 0.0;
2981                    rel1 { relative: 0.0 1.0; to_x:"elm.rect.left.pad"; to_y:"elm.rect.groupchat.pad"; }
2982             }
2983          }
2984          // it's temporary blocked for prepare entry's signal feature
2985          /*
2986          part {
2987            name: "elm.text.subject";
2988            type: TEXTBLOCK;
2989            scale: 1;
2990            description {
2991               state: "default" 0.0;
2992               align: 0.0 0.0;
2993               text {
2994                  style: "entry_textblock_style";
2995                  min: 0 1;
2996               }
2997               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2998               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
2999            }
3000          }
3001          */
3002
3003          part {
3004            name: "elm.rect.subject.line";
3005            type: RECT;
3006            scale: 1;
3007            description {
3008               state: "default" 0.0;
3009               visible: 0;
3010               min: 0 1;
3011               align: 0.0 0.0;
3012               color: 0 0 0 255;
3013               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3014               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
3015            }
3016          }
3017          part {
3018             name: "elm.swallow.callerid";
3019             type: SWALLOW;
3020             scale: 1;
3021             description {
3022                state: "default" 0.0;
3023                min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3024                max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3025                align: 1.0 0.0;
3026                visible: 0;
3027                rel1 { relative: ENTRY_BUBBLE_CALLERID_RELATIVE_INC; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.topright.pad"; }
3028                rel2 { relative: ENTRY_BUBBLE_CALLERID_RELATIVE_INC; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.bottom.pad"; }
3029             }
3030             description { state: "callerid_on" 0.0;
3031                inherit: "default" 0.0;
3032                visible: 1;
3033             }
3034          }
3035          part {
3036             name: "elm.rect.callerid.pad";
3037             type: RECT;
3038             scale: 1;
3039             description {
3040                state: "default" 0.0;
3041                min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3042                max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3043                align: 1.0 0.0;
3044                visible: 0;
3045                rel1 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.topright.pad"; }
3046                rel2 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.bottom.pad"; }
3047                 }
3048          }
3049          part { name: "elm.text";
3050             type: TEXTBLOCK;
3051             mouse_events: 1;
3052             scale: 1;
3053             entry_mode: PLAIN;
3054             select_mode: BLOCK_HANDLE;
3055             //cursor_mode: BEFORE;
3056             multiline: 1;
3057             source: "elm/entry/selection/default"; // selection under
3058             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3059             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3060             source5: "elm/entry/anchor/default"; // anchor under
3061             description {
3062            state: "default" 0.0;
3063            fixed: 1 0;
3064            align: 1.0 0.0;
3065            rel1 { relative: 0.0 1.0; to_y: "elm.rect.subject.line"; }
3066            rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.subject.line"; }
3067                text {
3068                       style: "entry_textblock_style";
3069                       min: 0 1;
3070               max: 1 0;
3071                }
3072             }
3073                 /* callerid only */
3074             description { state: "callerid_on" 0.0;
3075                inherit: "default" 0.0;
3076                rel1 { relative: 0.0 1.0; to_y: "elm.rect.subject.line";}
3077                rel2 { relative: 0.0 1.0; to_x: ENTRY_BUBBLE_TEXT_CALLID_REL2_X_INC; to_y: "elm.rect.subject.line"; }
3078             }
3079                 /* callerid and groupchat */
3080             description { state: "callerid_groupchat" 0.0;
3081                inherit: "default" 0.0;
3082                rel1 { relative: 0.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3083                rel2 { relative: 0.0 1.0; to_x: ENTRY_BUBBLE_TEXT_CALLID_REL2_X_INC; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3084             }
3085                 /* groupchat only */
3086             description { state: "groupchat_on" 0.0;
3087                inherit: "default" 0.0;
3088                rel1 { relative: 0.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3089                rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3090             }
3091             description { state: "disabled" 0.0;
3092                inherit: "default" 0.0;
3093                text {
3094                   style: "entry_textblock_disabled_style";
3095                }
3096             }
3097          }
3098          part {
3099             name: "elm.rect.status.pad";
3100             type: RECT;
3101             scale: 1;
3102             description {
3103                state: "default" 0.0;
3104                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
3105                fixed: 1 1;
3106                align: 1.0 1.0;
3107                visible: 0;
3108                            color: 255 0 0 255;
3109                rel1 { relative: ENTRY_BUBBLE_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3110                rel2 { relative: ENTRY_BUBBLE_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3111             }
3112          }
3113          part {
3114             name: "elm.rect.time.pad";
3115             type: RECT;
3116             scale: 1;
3117             description {
3118                state: "default" 0.0;
3119                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3120                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3121                fixed: 1 1;
3122                align: 0.0 0.0;
3123                visible: 0;
3124                            color: 0 255 0 255;
3125                rel1.to: "elm.rect.status.pad";
3126                rel2 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.bottom.pad"; }
3127             }
3128          }
3129          part { name: "elm.text.status";
3130             type: TEXT;
3131             scale: 1;
3132             description { state: "default" 0.0;
3133                align: 1.0 1.0;
3134                fixed: 1 1;
3135                text {
3136                   font: "SLP:style=Roman";
3137                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
3138                   min: 1 0;
3139                   text_class: "slp_roman";
3140                }
3141                visible: 1;
3142                color: ENTRY_BUBBLE_SENT_STATUS_TIME_COLOR_INC;
3143                rel1 { relative: 0.0 0.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
3144                rel2 { relative: 0.0 0.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
3145             }
3146             description { state: "disabled" 0.0;
3147                inherit: "default" 0.0;
3148                visible: 0;
3149             }
3150          }
3151          part { name: "elm.text.time";
3152             type: TEXT;
3153             scale: 1;
3154             description { state: "default" 0.0;
3155                align: 1.0 0.0;
3156                fixed: 1 1;
3157                text {
3158                   font: "SLP:style=Roman";
3159                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
3160                   min: 1 0;
3161                   text_class: "slp_roman";
3162                }
3163                visible: 1;
3164                color: ENTRY_BUBBLE_SENT_STATUS_TIME_COLOR_INC;
3165                rel1 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.time.pad"; }
3166                rel2 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.time.pad"; }
3167             }
3168             description { state: "disabled" 0.0;
3169                inherit: "default" 0.0;
3170                visible: 0;
3171             }
3172          }
3173          part {
3174             name: "elm.swallow.icon1";
3175             type: SWALLOW;
3176             scale: 1;
3177             description {
3178                state: "default" 0.0;
3179                min: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
3180                max: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
3181                fixed: 1 1;
3182                align: 1.0 1.0;
3183                visible: 0;
3184                rel1 { relative: -0.8 0.3; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3185                rel2 { relative: -0.8 0.3; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3186             }
3187             description { state: "enabled" 0.0;
3188                inherit: "default" 0.0;
3189                visible: 1;
3190             }
3191          }
3192          part {
3193            name: "elm.swallow.end";
3194            type: SWALLOW;
3195            scale: 1;
3196            description {
3197               state: "default" 0.0;
3198               align: 0.0 0.0;
3199               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.text"; }
3200               rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3201            }
3202          }
3203       }
3204       programs {
3205          program { name: "focus";
3206             signal: "load";
3207             source: "";
3208             action: FOCUS_SET;
3209             target: "elm.text";
3210          }
3211          program { name: "disable";
3212             signal: "elm,state,disabled";
3213             source: "elm";
3214             action: STATE_SET "disabled" 0.0;
3215             target: "elm.text";
3216          }
3217          program { name: "enable";
3218             signal: "elm,state,enabled";
3219             source: "elm";
3220             action: STATE_SET "default" 0.0;
3221             target: "elm.text";
3222          }
3223          program { name: "go_callerid_on";
3224             signal: "elm,state,callerid,enabled";
3225             source: "elm";
3226          script {
3227             new st[31];
3228             new Float:vl;
3229             get_state(PART:"elm.text", st, 30, vl);
3230             if (!strcmp(st, "default")) {
3231               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
3232               set_state(PART:"elm.text", "callerid_on", 0.0);
3233                         }
3234             else if (!strcmp(st, "groupchat_on")) {
3235               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
3236               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
3237                         }
3238
3239             set_state(PART:"elm.swallow.callerid", "callerid_on", 0.0);
3240             set_state(PART:"elm.rect.right.pad", "callerid_on", 0.0);
3241             set_state(PART:"elm.rect.groupchat.pad", "callerid_on", 0.0);
3242          }
3243          }
3244          program { name: "go_callerid_off";
3245             signal: "elm,state,callerid,disabled";
3246             source: "elm";
3247          script {
3248             new st[31];
3249             new Float:vl;
3250             get_state(PART:"elm.text", st, 30, vl);
3251             if (!strcmp(st, "callerid_groupchat")) {
3252               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
3253               set_state(PART:"elm.text", "groupchat_on", 0.0);
3254                         }
3255             else {
3256               set_state(PART:"elm.image.bg", "default", 0.0);
3257               set_state(PART:"elm.text", "default", 0.0);
3258                         }
3259
3260             set_state(PART:"elm.swallow.callerid", "default", 0.0);
3261             set_state(PART:"elm.rect.groupchat.pad", "default", 0.0);
3262                  }
3263          }
3264 /* groupchat - since white-hd theme */
3265 #if ENTRY_BUBBLE_GROUPCHART_ENABLE_INC
3266          program { name: "go_groupchat_on";
3267             signal: "elm,state,groupchat,enabled";
3268             source: "elm";
3269          script {
3270             new st[31];
3271             new Float:vl;
3272             get_state(PART:"elm.text", st, 30, vl);
3273             if (!strcmp(st, "default")) {
3274               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
3275               set_state(PART:"elm.text", "groupchat_on", 0.0);
3276                         }
3277             else if (!strcmp(st, "callerid_on")) {
3278               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
3279               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
3280                         }
3281          }
3282          }
3283 #endif
3284          program { name: "go_groupchat_off";
3285             signal: "elm,state,groupchat,disabled";
3286             source: "elm";
3287          script {
3288             new st[31];
3289             new Float:vl;
3290             get_state(PART:"elm.text", st, 30, vl);
3291             if (!strcmp(st, "callerid_groupchat")) {
3292               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
3293               set_state(PART:"elm.text", "callerid_on", 0.0);
3294                         }
3295             else {
3296               set_state(PART:"elm.image.bg", "default", 0.0);
3297               set_state(PART:"elm.text", "default", 0.0);
3298                         }
3299                  }
3300          }
3301          program { name: "go_textstatus_on";
3302             signal: "elm,state,text,status,enabled";
3303             source: "elm";
3304             action: STATE_SET "default" 0.0;
3305             target: "elm.text.time";
3306             target: "elm.text.status";
3307             after: "go_contentstatus_off";
3308          }
3309          program { name: "go_textstatus_off";
3310             signal: "elm,state,text,status,disbled";
3311             source: "elm";
3312             action: STATE_SET "disabled" 0.0;
3313             target: "elm.text.time";
3314             target: "elm.text.status";
3315          }
3316          program { name: "go_contentstatus_on";
3317             signal: "elm,state,content,status,enabled";
3318             source: "elm";
3319             action: STATE_SET "enabled" 0.0;
3320             target: "elm.swallow.icon1";
3321             after: "go_textstatus_off";
3322          }
3323          program { name: "go_contentstatus_off";
3324             signal: "elm,state,content,status,disabled";
3325             source: "elm";
3326             action: STATE_SET "default" 0.0;
3327             target: "elm.swallow.icon1";
3328          }
3329       }
3330    }
3331
3332    group { name: "elm/entry/base-noedit-charwrap/sentmessage";
3333       data.item: "default_font_size" "24";
3334       data.item: "min_font_size" "8";
3335       data.item: "max_font_size" "60";
3336       data {
3337          item: context_menu_orientation "horizontal";
3338       }
3339       parts {
3340          part {
3341             name: "elm.rect.right.pad";
3342             type: RECT;
3343             scale: 1;
3344             description {
3345                state: "default" 0.0;
3346                min: ENTRY_BUBBLE_EX_PAD 0;
3347                fixed: 1 0;
3348                align: 1.0 0.0;
3349                color: 0 0 0 0;
3350                rel1.relative: 1.0 0.0;
3351             }
3352          }
3353          part {
3354             name: "elm.rect.left.pad";
3355             type: RECT;
3356             scale: 1;
3357             description {
3358                state: "default" 0.0;
3359                min: ENTRY_BUBBLE_IX_PAD 0;
3360                fixed: 1 0;
3361                align: 1.0 0.0;
3362                color: 0 0 0 0;
3363                rel1 { relative: 0.0 0.0; to: "elm.text"; }
3364                rel2 { relative: 0.0 1.0; to: "elm.text"; }
3365             }
3366          }
3367          part {
3368            name: "elm.rect.top.pad";
3369            type: RECT;
3370            scale: 1;
3371            description {
3372               state: "default" 0.0;
3373               min: 0 ENTRY_BUBBLE_Y_PAD;
3374               fixed: 0 1;
3375               align: 0.0 0.0;
3376               color: 0 0 0 0;
3377               rel2.relative: 1.0 0.0;
3378            }
3379          }
3380          part {
3381            name: "elm.rect.bottom.pad";
3382            type: RECT;
3383            scale: 1;
3384            description {
3385               state: "default" 0.0;
3386               min: 0 ENTRY_BUBBLE_Y_PAD;
3387               fixed: 0 1;
3388               align: 0.0 1.0;
3389               color: 0 0 0 0;
3390               rel1.relative: 0.0 1.0;
3391            }
3392          }
3393          part {
3394             name: "elm.image.bg";
3395             type: IMAGE;
3396             scale: 1;
3397             description {
3398                state: "default" 0.0;
3399                rel1.to_x: "elm.rect.left.pad";
3400                image {
3401                   normal: "00_MessageBubble_BG_send.png";
3402                   border: 20 1 13 20;
3403                   border_scale: 1;
3404                }
3405             }
3406          }
3407          part { name: "elm.text";
3408             type: TEXTBLOCK;
3409             mouse_events: 1;
3410             scale: 1;
3411             entry_mode: PLAIN;
3412             select_mode: BLOCK_HANDLE;
3413             //cursor_mode: BEFORE;
3414             multiline: 1;
3415             source: "elm/entry/selection/default"; // selection under
3416             source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3417             source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3418             source5: "elm/entry/anchor/default"; // anchor under
3419             description { state: "default" 0.0;
3420                fixed: 1 0;
3421                align: 1.0 0.0;
3422                rel1 { relative: 0.0 1.0; to_y: "elm.rect.top.pad";}
3423                rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3424                text {
3425                   style: "entry_textblock_style_charwrap";
3426                   min: 0 1;
3427                   max: 1 0;
3428                }
3429             }
3430             description { state: "disabled" 0.0;
3431                inherit: "default" 0.0;
3432                text {
3433                   style: "entry_textblock_disabled_style_charwrap";
3434                }
3435             }
3436          }
3437       }
3438       programs {
3439          program { name: "focus";
3440             signal: "load";
3441             source: "";
3442             action: FOCUS_SET;
3443             target: "elm.text";
3444          }
3445          program { name: "disable";
3446             signal: "elm,state,disabled";
3447             source: "elm";
3448             action: STATE_SET "disabled" 0.0;
3449             target: "elm.text";
3450          }
3451          program { name: "enable";
3452             signal: "elm,state,enabled";
3453             source: "elm";
3454             action: STATE_SET "default" 0.0;
3455             target: "elm.text";
3456          }
3457       }
3458    }
3459
3460 group { name: "elm/entry/base/font_color_black";
3461    alias: "elm/entry/base-mixedwrap/font_color_black";
3462    alias: "elm/entry/base/font_color_black/default";
3463    alias: "elm/entry/base/font_color_black/lighting";
3464    alias: "elm/entry/base/font_color_black/multiline";
3465    alias: "elm/entry/base/font_color_black/multiline/default";
3466    alias: "elm/entry/base/font_color_black/multiline/lighting";
3467    alias: "elm/entry/base/editfield/font_color_black";
3468
3469    data.item: "default_font_size" "24";
3470    data.item: "min_font_size" "8";
3471    data.item: "max_font_size" "60";
3472
3473    styles {
3474       style { name: "font_color_black_textblock_style";
3475          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=mixed left_margin=1 right_margin=2 text_class=entry";
3476          tag:  "br" "\n";
3477          tag:  "ps" "ps";
3478          tag:  "tab" "\t";
3479          tag:  "em" "+ font=SLP:style=Oblique";
3480          tag:  "b" "+ font=SLP:style=Bold";
3481          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
3482          tag:  "hilight" "+ font=SLP:style=Bold";
3483          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3484          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3485       }
3486       style { name: "font_color_black_textblock_disabled_style";
3487          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=mixed left_margin=1 right_margin=2 text_class=entry";
3488          tag:  "br" "\n";
3489          tag:  "ps" "ps";
3490          tag:  "tab" "\t";
3491          tag:  "em" "+ font=SLP:style=Oblique";
3492          tag:  "b" "+ font=SLP:style=Bold";
3493          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
3494          tag:  "hilight" "+ font=SLP:style=Bold";
3495          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3496          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3497       }
3498    }
3499    data {
3500       item: context_menu_orientation "horizontal";
3501    }
3502    parts {
3503       part { name: "elm.text";
3504          type: TEXTBLOCK;
3505          mouse_events: 1;
3506          scale: 1;
3507          entry_mode: EDITABLE;
3508          select_mode: BLOCK_HANDLE;
3509          //cursor_mode: BEFORE;
3510          multiline: 1;
3511          source: "elm/entry/selection/default"; // selection under
3512          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3513          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3514          source4: "elm/entry/cursor/default"; // cursorover
3515          source5: "elm/entry/anchor/default"; // anchor under
3516          //source6: "X"; // anchor over
3517          description { state: "default" 0.0;
3518             fixed: 1 0;
3519             text {
3520                style: "font_color_black_textblock_style";
3521                min: 0 1;
3522             }
3523          }
3524          description { state: "disabled" 0.0;
3525             inherit: "default" 0.0;
3526             text {
3527                style: "font_color_black_textblock_disabled_style";
3528                min: 0 1;
3529             }
3530          }
3531       }
3532    }
3533    programs {
3534       program { name: "focus";
3535          signal: "load";
3536          source: "";
3537          action: FOCUS_SET;
3538          target: "elm.text";
3539       }
3540       program { name: "disable";
3541          signal: "elm,state,disabled";
3542          source: "elm";
3543          action: STATE_SET "disabled" 0.0;
3544          target: "elm.text";
3545       }
3546       program { name: "enable";
3547          signal: "elm,state,enabled";
3548          source: "elm";
3549          action: STATE_SET "default" 0.0;
3550          target: "elm.text";
3551       }
3552    }
3553 }
3554
3555 group { name: "elm/entry/base-noedit/font_color_black";
3556    data.item: "default_font_size" "24";
3557    data.item: "min_font_size" "8";
3558    data.item: "max_font_size" "60";
3559    data {
3560       item: context_menu_orientation "horizontal";
3561    }
3562    parts {
3563       part { name: "elm.text";
3564          type: TEXTBLOCK;
3565          mouse_events: 1;
3566          scale: 1;
3567          entry_mode: PLAIN;
3568          select_mode: BLOCK_HANDLE;
3569          //cursor_mode: BEFORE;
3570          multiline: 1;
3571          source: "elm/entry/selection/default"; // selection under
3572          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3573          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3574          source4: "elm/entry/cursor/default"; // cursorover
3575          source5: "elm/entry/anchor/default"; // anchor under
3576          //source6: "X"; // anchor over
3577          description { state: "default" 0.0;
3578             fixed: 1 0;
3579             text {
3580                style: "font_color_black_textblock_style";
3581                min: 0 1;
3582             }
3583          }
3584          description { state: "disabled" 0.0;
3585             inherit: "default" 0.0;
3586             text {
3587                style: "font_color_black_textblock_disabled_style";
3588                min: 0 1;
3589             }
3590          }
3591       }
3592    }
3593    programs {
3594       program { name: "focus";
3595          signal: "load";
3596          source: "";
3597          action: FOCUS_SET;
3598          target: "elm.text";
3599       }
3600       program { name: "disable";
3601          signal: "elm,state,disabled";
3602          source: "elm";
3603          action: STATE_SET "disabled" 0.0;
3604          target: "elm.text";
3605       }
3606       program { name: "enable";
3607          signal: "elm,state,enabled";
3608          source: "elm";
3609          action: STATE_SET "default" 0.0;
3610          target: "elm.text";
3611       }
3612    }
3613 }
3614
3615 group { name: "elm/entry/base-charwrap/font_color_black";
3616    alias: "elm/entry/base/font_color_black/char_wrap";
3617    alias: "elm/entry/base/font_color_black/default/char_wrap";
3618    alias: "elm/entry/base/font_color_black/lighting/char_wrap";
3619    alias: "elm/entry/base/font_color_black/multiline/char_wrap";
3620    alias: "elm/entry/base/font_color_black/multiline/default/char_wrap";
3621    alias: "elm/entry/base/font_color_black/multiline/lighting/char_wrap";
3622    alias: "elm/entry/base-charwrap/editfield/font_color_black";
3623
3624    data.item: "default_font_size" "24";
3625    data.item: "min_font_size" "8";
3626    data.item: "max_font_size" "60";
3627
3628    styles {
3629       style { name: "font_color_black_textblock_char_wrap_style";
3630          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=char left_margin=1 right_margin=2 text_class=entry";
3631          tag:  "br" "\n";
3632          tag:  "ps" "ps";
3633          tag:  "tab" "\t";
3634          tag:  "em" "+ font=SLP:style=Oblique";
3635          tag:  "b" "+ font=SLP:style=Bold";
3636          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
3637          tag:  "hilight" "+ font=SLP:style=Bold";
3638          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3639          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3640       }
3641       style { name: "font_color_black_textblock_char_wrap_disabled_style";
3642          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2 text_class=entry";
3643          tag:  "br" "\n";
3644          tag:  "ps" "ps";
3645          tag:  "tab" "\t";
3646          tag:  "em" "+ font=SLP:style=Oblique";
3647          tag:  "b" "+ font=SLP:style=Bold";
3648          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
3649          tag:  "hilight" "+ font=SLP:style=Bold";
3650          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3651          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3652       }
3653    }
3654    data {
3655       item: context_menu_orientation "horizontal";
3656    }
3657    parts {
3658       part { name: "elm.text";
3659          type: TEXTBLOCK;
3660          mouse_events: 1;
3661          scale: 1;
3662          entry_mode: EDITABLE;
3663          select_mode: BLOCK_HANDLE;
3664          //cursor_mode: BEFORE;
3665          multiline: 1;
3666          source: "elm/entry/selection/default"; // selection under
3667          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3668          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3669          source4: "elm/entry/cursor/default"; // cursorover
3670          source5: "elm/entry/anchor/default"; // anchor under
3671          //source6: "X"; // anchor over
3672          description { state: "default" 0.0;
3673             fixed: 1 0;
3674             text {
3675                style: "font_color_black_textblock_char_wrap_style";
3676                min: 0 1;
3677             }
3678          }
3679          description { state: "disabled" 0.0;
3680             inherit: "default" 0.0;
3681             text {
3682                style: "font_color_black_textblock_char_wrap_disabled_style";
3683                min: 0 1;
3684             }
3685          }
3686       }
3687    }
3688    programs {
3689       program { name: "focus";
3690          signal: "load";
3691          source: "";
3692          action: FOCUS_SET;
3693          target: "elm.text";
3694       }
3695       program { name: "disable";
3696          signal: "elm,state,disabled";
3697          source: "elm";
3698          action: STATE_SET "disabled" 0.0;
3699          target: "elm.text";
3700       }
3701       program { name: "enable";
3702          signal: "elm,state,enabled";
3703          source: "elm";
3704          action: STATE_SET "default" 0.0;
3705          target: "elm.text";
3706       }
3707    }
3708 }
3709
3710 group { name: "elm/entry/base-single/font_color_black";
3711    alias: "elm/entry/base-single/font_color_black/default";
3712    alias: "elm/entry/base-single/font_color_black/lighting";
3713    alias: "elm/entry/base-single/font_color_black/singleline";
3714    alias: "elm/entry/base-single/font_color_black/singleline/default";
3715    alias: "elm/entry/base-single/font_color_black/singleline/lighting";
3716    alias: "elm/entry/base-single/editfield/font_color_black";
3717    alias: "elm/entry/base-single/editfield/searchbar/font_color_black";
3718
3719    data.item: "default_font_size" "24";
3720    data.item: "min_font_size" "8";
3721    data.item: "max_font_size" "60";
3722
3723    styles {
3724       style { name: "font_color_black_single_textblock_style";
3725          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=none left_margin=1 right_margin=3 text_class=entry";
3726          tag:  "br" "\n";
3727          tag:  "ps" "ps";
3728          tag:  "tab" "\t";
3729          tag:  "em" "+ font=SLP:style=Oblique";
3730          tag:  "b" "+ font=SLP:style=Bold";
3731          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
3732          tag:  "hilight" "+ font=SLP:style=Bold";
3733          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3734          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3735       }
3736       style { name: "font_color_black_single_textblock_disabled_style";
3737          base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
3738          tag:  "br" "\n";
3739          tag:  "ps" "ps";
3740          tag:  "tab" "\t";
3741          tag:  "em" "+ font=SLP:style=Oblique";
3742          tag:  "b" "+ font=SLP:style=Bold";
3743          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
3744          tag:  "hilight" "+ font=SLP:style=Bold";
3745          tag:  "preedit" "+ underline=on underline_color=#000000FF";
3746          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
3747       }
3748    }
3749    data {
3750       item: context_menu_orientation "horizontal";
3751    }
3752    parts {
3753       part { name: "elm.text";
3754          type: TEXTBLOCK;
3755          mouse_events: 1;
3756          scale: 1;
3757          entry_mode: EDITABLE;
3758          select_mode: BLOCK_HANDLE;
3759          //cursor_mode: BEFORE;
3760          multiline: 0;
3761          source: "elm/entry/selection/default"; // selection under
3762          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3763          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3764          source4: "elm/entry/cursor/default"; // cursorover
3765          source5: "elm/entry/anchor/default"; // anchor under
3766          description { state: "default" 0.0;
3767             text {
3768                style: "font_color_black_single_textblock_style";
3769                min: 1 1;
3770                max: 0 1;
3771             }
3772          }
3773          description { state: "disabled" 0.0;
3774             inherit: "default" 0.0;
3775             text {
3776                style: "font_color_black_single_textblock_disabled_style";
3777             }
3778          }
3779       }
3780    }
3781    programs {
3782       program { name: "focus";
3783          signal: "load";
3784          source: "";
3785          action: FOCUS_SET;
3786          target: "elm.text";
3787       }
3788       program { name: "disable";
3789          signal: "elm,state,disabled";
3790          source: "elm";
3791          action: STATE_SET "disabled" 0.0;
3792          target: "elm.text";
3793       }
3794       program { name: "enable";
3795          signal: "elm,state,enabled";
3796          source: "elm";
3797          action: STATE_SET "default" 0.0;
3798          target: "elm.text";
3799       }
3800    }
3801 }
3802
3803 group { name: "elm/entry/base-single-noedit/font_color_black";
3804    data.item: "default_font_size" "24";
3805    data.item: "min_font_size" "8";
3806    data.item: "max_font_size" "60";
3807    data {
3808       item: context_menu_orientation "horizontal";
3809    }
3810    parts {
3811       part { name: "elm.text";
3812          type: TEXTBLOCK;
3813          mouse_events: 1;
3814          scale: 1;
3815          entry_mode: PLAIN;
3816          select_mode: BLOCK_HANDLE;
3817          //cursor_mode: BEFORE;
3818          multiline: 0;
3819          source: "elm/entry/selection/default"; // selection under
3820          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3821          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3822          source4: "elm/entry/cursor/default"; // cursorover
3823          source5: "elm/entry/anchor/default"; // anchor under
3824          description { state: "default" 0.0;
3825             text {
3826                style: "font_color_black_single_textblock_style";
3827                min: 1 1;
3828                max: 0 1;
3829             }
3830          }
3831          description { state: "disabled" 0.0;
3832             inherit: "default" 0.0;
3833             text {
3834                style: "font_color_black_single_textblock_disabled_style";
3835             }
3836          }
3837       }
3838    }
3839    programs {
3840       program { name: "focus";
3841          signal: "load";
3842          source: "";
3843          action: FOCUS_SET;
3844          target: "elm.text";
3845       }
3846       program { name: "disable";
3847          signal: "elm,state,disabled";
3848          source: "elm";
3849          action: STATE_SET "disabled" 0.0;
3850          target: "elm.text";
3851       }
3852       program { name: "enable";
3853          signal: "elm,state,enabled";
3854          source: "elm";
3855          action: STATE_SET "default" 0.0;
3856          target: "elm.text";
3857       }
3858    }
3859 }
3860 group { name: "elm/entry/base-password/font_color_black";
3861    alias: "elm/entry/base-password/editfield/font_color_black";
3862    data.item: "default_font_size" "24";
3863    data.item: "min_font_size" "8";
3864    data.item: "max_font_size" "60";
3865    data {
3866       item: context_menu_orientation "horizontal";
3867    }
3868    parts {
3869       part { name: "elm.text";
3870          type: TEXTBLOCK;
3871          mouse_events: 1;
3872          scale: 1;
3873          entry_mode: PASSWORD;
3874          select_mode: BLOCK_HANDLE;
3875          multiline: 0;
3876          source: "elm/entry/selection/default"; // selection under
3877          source2: ENTRY_BLOCK_HANDLE_SOURCE2; // block handle
3878          source3: ENTRY_BLOCK_HANDLE_SOURCE3; // block handle
3879          source4: "elm/entry/cursor/default"; // cursorover
3880          source5: "elm/entry/anchor/default"; // anchor under
3881          description { state: "default" 0.0;
3882             text {
3883                style: "font_color_black_single_textblock_style";
3884                repch: "*";
3885                min: 1 1;
3886                max: 0 1;
3887             }
3888          }
3889          description { state: "disabled" 0.0;
3890             inherit: "default" 0.0;
3891             text {
3892                style: "font_color_black_single_textblock_disabled_style";
3893             }
3894          }
3895       }
3896    }
3897    programs {
3898       program { name: "focus";
3899          signal: "load";
3900          source: "";
3901          action: FOCUS_SET;
3902          target: "elm.text";
3903       }
3904       program { name: "disable";
3905          signal: "elm,state,disabled";
3906          source: "elm";
3907          action: STATE_SET "disabled" 0.0;
3908          target: "elm.text";
3909       }
3910       program { name: "enable";
3911          signal: "elm,state,enabled";
3912          source: "elm";
3913          action: STATE_SET "default" 0.0;
3914          target: "elm.text";
3915       }
3916    }
3917 }
3918
3919 group { name: "elm/scroller/entry/default";
3920       alias : "elm/scroller/entry/editfield";
3921       alias : "elm/scroller/entry/editfield/searchbar/default";
3922       data {
3923          item: "focus_highlight" "on";
3924       }
3925       script {
3926          public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
3927          public timer0(val) {
3928             new v;
3929             v = get_int(sbvis_v);
3930             if (v) {
3931                v = get_int(sbalways_v);
3932                if (!v) {
3933                   emit("do-hide-vbar", "");
3934                   set_int(sbvis_v, 0);
3935                }
3936             }
3937             v = get_int(sbvis_h);
3938             if (v) {
3939                v = get_int(sbalways_h);
3940                if (!v) {
3941                   emit("do-hide-hbar", "");
3942                   set_int(sbvis_h, 0);
3943                }
3944             }
3945             set_int(sbvis_timer, 0);
3946             return 0;
3947          }
3948       }
3949       images {
3950          image: "bt_sm_base2.png" COMP;
3951       }
3952       parts {
3953          part { name: "bg";
3954             type: RECT;
3955             description { state: "default" 0.0;
3956                visible: 0;
3957             }
3958          }
3959          part { name: "clipper";
3960             type: RECT;
3961             mouse_events: 0;
3962             description { state: "default" 0.0;
3963                rel1.to: "bg";
3964                rel2.to: "bg";
3965             }
3966          }
3967          part { name: "contentclipper";
3968             type: RECT;
3969             mouse_events: 0;
3970             clip_to: "clipper";
3971             description { state: "default" 0.0;
3972                rel1.to: "elm.swallow.icon";
3973                rel1.relative: 1.0 0.0;
3974                rel2.to: "elm.swallow.end";
3975                rel2.relative: 0.0 1.0;
3976             }
3977          }
3978          part { name: "elm.swallow.icon";
3979             type: SWALLOW;
3980             clip_to: "clipper";
3981             description { state: "default" 0.0;
3982                fixed: 1 1;
3983                rel1 {
3984                   to: "bg";
3985                   relative: 0.0 0.0;
3986                }
3987                rel2 {
3988                   to: "bg";
3989                   relative: 0.0 1.0;
3990                }
3991                visible: 0;
3992             }
3993             description { state: "visible" 0.0;
3994                fixed: 1 1;
3995                align: 0.0 1.0;
3996                rel1 {
3997                          to: "bg";
3998                          relative: 0.0 0.0;
3999                }
4000                rel2 {
4001                   to: "bg";
4002                   relative: 0.0 1.0;
4003                }
4004                visible: 1;
4005             }
4006          }
4007          part { name: "elm.swallow.end";
4008             type: SWALLOW;
4009             clip_to: "clipper";
4010             description { state: "default" 0.0;
4011                fixed: 1 1;
4012                rel1 {
4013                   to: "bg";
4014                   relative: 1.0 0.0;
4015                }
4016                rel2 {
4017                   to: "bg";
4018                   relative: 1.0 1.0;
4019                }
4020                visible: 0;
4021             }
4022             description { state: "visible" 0.0;
4023                fixed: 1 1;
4024                align: 1.0 1.0;
4025                rel1 {
4026                   to: "bg";
4027                   relative: 1.0 0.0;
4028                }
4029                rel2 {
4030                   to: "bg";
4031                   relative: 1.0 1.0;
4032                }
4033                visible: 1;
4034             }
4035          }
4036          part { name: "elm.swallow.content";
4037             clip_to: "contentclipper";
4038             type: SWALLOW;
4039             description { state: "default" 0.0;
4040                rel1 {
4041                        to: "elm.swallow.icon";
4042                        relative: 1.0 0.0;
4043                }
4044                rel2 {
4045                 to: "elm.swallow.end";
4046                 relative: 0.0 1.0;
4047                }
4048             }
4049          }
4050          part { name: "sb_vbar_clip_master";
4051             type: RECT;
4052             mouse_events: 0;
4053             description { state: "default" 0.0;
4054             }
4055             description { state: "hidden" 0.0;
4056                visible: 0;
4057                color: 255 255 255 0;
4058             }
4059          }
4060          part { name: "sb_vbar_clip";
4061             clip_to: "sb_vbar_clip_master";
4062             type: RECT;
4063             mouse_events: 0;
4064             description { state: "default" 0.0;
4065             }
4066             description { state: "hidden" 0.0;
4067                visible: 0;
4068                color: 255 255 255 0;
4069             }
4070          }
4071          part { name: "sb_vbar";
4072             type: RECT;
4073             mouse_events: 0;
4074             description { state: "default" 0.0;
4075                fixed: 1 1;
4076                visible: 0;
4077                min: 10 17;
4078                align: 1.0 0.0;
4079                rel1 {
4080                   relative: 0.0 0.0;
4081                   to_y:     "elm.swallow.content";
4082                   to_x:     "elm.swallow.end";
4083                }
4084                rel2 {
4085                   relative: 0.0 0.0;
4086                   to_y:     "sb_hbar";
4087                   to_x:     "elm.swallow.end";
4088                }
4089             }
4090          }
4091          part { name: "elm.dragable.vbar";
4092             clip_to: "sb_vbar_clip";
4093             mouse_events: 0;
4094             dragable {
4095                x: 0 0 0;
4096                y: 1 1 0;
4097                confine: "sb_vbar";
4098             }
4099             description { state: "default" 0.0;
4100                visible: 0;
4101                fixed: 1 1;
4102                min: 10 17;
4103                max: 10 99999;
4104                rel1 {
4105                   relative: 0.5  0.5;
4106                   to: "sb_vbar";
4107                }
4108                rel2 {
4109                   relative: 0.5  0.5;
4110                   to: "sb_vbar";
4111                }
4112                image {
4113                   normal: "bt_sm_base2.png";
4114                   border: 6 6 6 6;
4115                   middle: SOLID;
4116                }
4117             }
4118          }
4119          part { name: "sb_hbar_clip_master";
4120             type: RECT;
4121             mouse_events: 0;
4122             description { state: "default" 0.0;
4123             }
4124             description { state: "hidden" 0.0;
4125                visible: 0;
4126                color: 255 255 255 0;
4127             }
4128          }
4129          part { name: "sb_hbar_clip";
4130             clip_to: "sb_hbar_clip_master";
4131             type: RECT;
4132             mouse_events: 0;
4133             description { state: "default" 0.0;
4134             }
4135             description { state: "hidden" 0.0;
4136                visible: 0;
4137                color: 255 255 255 0;
4138             }
4139          }
4140          part { name: "sb_hbar";
4141             type: RECT;
4142             mouse_events: 0;
4143             description { state: "default" 0.0;
4144                fixed: 1 1;
4145                visible: 0;
4146                min: 17 10;
4147                align: 0.0 1.0;
4148                rel1 {
4149                   relative: 0.0 1.0;
4150                   to_x:     "elm.swallow.content";
4151                   to_y:     "elm.swallow.content";
4152                }
4153                rel2 {
4154                   relative: 0.0 1.0;
4155                   to_x:     "sb_vbar";
4156                   to_y:     "elm.swallow.content";
4157                }
4158             }
4159          }
4160          part { name: "elm.dragable.hbar";
4161             clip_to: "sb_hbar_clip";
4162             mouse_events: 0;
4163             dragable {
4164                x: 1 1 0;
4165                y: 0 0 0;
4166                confine: "sb_hbar";
4167             }
4168             description { state: "default" 0.0;
4169                fixed: 1 1;
4170                min: 17 10;
4171                max: 99999 10;
4172                rel1 {
4173                   relative: 0.5  0.5;
4174                   to: "sb_hbar";
4175                }
4176                rel2 {
4177                   relative: 0.5  0.5;
4178                   to: "sb_hbar";
4179                }
4180                image {
4181                   normal: "bt_sm_base2.png";
4182                   border: 4 4 4 4;
4183                   middle: SOLID;
4184                }
4185             }
4186          }
4187       }
4188       programs {
4189          program { name: "load";
4190             signal: "load";
4191             source: "";
4192             script {
4193                set_state(PART:"sb_hbar_clip", "hidden", 0.0);
4194                set_state(PART:"sb_vbar_clip", "hidden", 0.0);
4195                set_int(sbvis_h, 0);
4196                set_int(sbvis_v, 0);
4197                set_int(sbalways_v, 0);
4198                set_int(sbalways_h, 0);
4199                set_int(sbvis_timer, 0);
4200             }
4201          }
4202          program { name: "icon_show";
4203             signal: "elm,action,show,icon";
4204             source: "elm";
4205             action: STATE_SET "visible" 0.0;
4206             target: "elm.swallow.icon";
4207          }
4208          program { name: "icon_hide";
4209             signal: "elm,action,hide,icon";
4210             source: "elm";
4211             action: STATE_SET "default" 0.0;
4212             target: "elm.swallow.icon";
4213          }
4214          program { name: "end_show";
4215             signal: "elm,action,show,end";
4216             source: "elm";
4217             action: STATE_SET "visible" 0.0;
4218             target: "elm.swallow.end";
4219          }
4220          program { name: "end_hide";
4221             signal: "elm,action,hide,end";
4222             source: "elm";
4223             action: STATE_SET "default" 0.0;
4224             target: "elm.swallow.end";
4225          }
4226          program { name: "vbar_show";
4227             signal: "elm,action,show,vbar";
4228             source: "elm";
4229             action:  STATE_SET "default" 0.0;
4230             target: "sb_vbar_clip_master";
4231          }
4232          program { name: "vbar_hide";
4233             signal: "elm,action,hide,vbar";
4234             source: "elm";
4235             action:  STATE_SET "hidden" 0.0;
4236             target: "sb_vbar_clip_master";
4237          }
4238          program { name: "vbar_show_always";
4239             signal: "elm,action,show_always,vbar";
4240             source: "elm";
4241             script {
4242                new v;
4243                v = get_int(sbvis_v);
4244                v |= get_int(sbalways_v);
4245                if (!v) {
4246                   set_int(sbalways_v, 1);
4247                   emit("do-show-vbar", "");
4248                   set_int(sbvis_v, 1);
4249                }
4250             }
4251          }
4252          program { name: "vbar_show_notalways";
4253             signal: "elm,action,show_notalways,vbar";
4254             source: "elm";
4255             script {
4256                new v;
4257                v = get_int(sbalways_v);
4258                if (v) {
4259                   set_int(sbalways_v, 0);
4260                   v = get_int(sbvis_v);
4261                   if (!v) {
4262                      emit("do-hide-vbar", "");
4263                      set_int(sbvis_v, 0);
4264                   }
4265                }
4266             }
4267          }
4268          program { name: "sb_vbar_show";
4269             signal: "do-show-vbar";
4270             source: "";
4271             action:  STATE_SET "default" 0.0;
4272             transition: LINEAR 0.5;
4273             target: "sb_vbar_clip";
4274          }
4275          program { name: "sb_vbar_hide";
4276             signal: "do-hide-vbar";
4277             source: "";
4278             action:  STATE_SET "hidden" 0.0;
4279             transition: LINEAR 0.5;
4280             target: "sb_vbar_clip";
4281          }
4282
4283          program { name: "hbar_show";
4284             signal: "elm,action,show,hbar";
4285             source: "elm";
4286             action:  STATE_SET "default" 0.0;
4287             target: "sb_hbar_clip_master";
4288          }
4289          program { name: "hbar_hide";
4290             signal: "elm,action,hide,hbar";
4291             source: "elm";
4292             action:  STATE_SET "hidden" 0.0;
4293             target: "sb_hbar_clip_master";
4294          }
4295          program { name: "hbar_show_always";
4296             signal: "elm,action,show_always,hbar";
4297             source: "elm";
4298             script {
4299                new v;
4300                v = get_int(sbvis_h);
4301                v |= get_int(sbalways_h);
4302                if (!v) {
4303                   set_int(sbalways_h, 1);
4304                   emit("do-show-hbar", "");
4305                   set_int(sbvis_h, 1);
4306                }
4307             }
4308          }
4309          program { name: "hbar_show_notalways";
4310             signal: "elm,action,show_notalways,hbar";
4311             source: "elm";
4312             script {
4313                new v;
4314                v = get_int(sbalways_h);
4315                if (v) {
4316                   set_int(sbalways_h, 0);
4317                   v = get_int(sbvis_h);
4318                   if (!v) {
4319                      emit("do-hide-hbar", "");
4320                      set_int(sbvis_h, 0);
4321                   }
4322                }
4323             }
4324          }
4325          program { name: "sb_hbar_show";
4326             signal: "do-show-hbar";
4327             source: "";
4328             action:  STATE_SET "default" 0.0;
4329             transition: LINEAR 0.5;
4330             target: "sb_hbar_clip";
4331          }
4332          program { name: "sb_hbar_hide";
4333             signal: "do-hide-hbar";
4334             source: "";
4335             action:  STATE_SET "hidden" 0.0;
4336             transition: LINEAR 0.5;
4337             target: "sb_hbar_clip";
4338          }
4339
4340          program { name: "scroll";
4341             signal: "elm,action,scroll";
4342             source: "elm";
4343             script {
4344                new v;
4345                v = get_int(sbvis_v);
4346                v |= get_int(sbalways_v);
4347                if (!v) {
4348                   emit("do-show-vbar", "");
4349                   set_int(sbvis_v, 1);
4350                }
4351                v = get_int(sbvis_h);
4352                v |= get_int(sbalways_h);
4353                if (!v) {
4354                   emit("do-show-hbar", "");
4355                   set_int(sbvis_h, 1);
4356                }
4357                v = get_int(sbvis_timer);
4358                if (v > 0) cancel_timer(v);
4359                v = timer(1.0, "timer0", 0);
4360                set_int(sbvis_timer, v);
4361             }
4362          }
4363       }
4364    }