2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
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.
19 #define TEXT_SLIDE_DURATION 10
22 style { name: "textblock_style";
23 base: "font=SLP:style=Medium font_size="LABEL_FONT_SIZE_INC" color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC" text_class=slp_medium";
26 tag: "hilight" "+ font=SLP:style=Bold";
27 tag: "b" "+ font=SLP:style=Bold";
32 /* label doesn't use it */
34 style { name: "textblock_charwrap_style";
35 base: "font=SLP:style=Medium font_size="LABEL_FONT_SIZE_INC" color="LABEL_TEXT_BLOCK_STYLE_COLOR_INC" text_class=slp_medium";
38 tag: "hilight" "+ font=SLP:style=Bold";
39 tag: "b" "+ font=SLP:style=Bold";
44 group { name: "elm/label/base/default";
45 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
46 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
47 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
49 part { name: "label.swallow.background";
51 description { state: "default" 0.0;
55 part { name: "label.text.clip";
57 description { state: "default" 0.0;
59 color: 255 255 255 255;
60 rel1 { relative: 0 0; to: "label.swallow.background"; }
61 rel2 { relative: 1 1; to: "label.swallow.background"; }
64 part { name: "elm.text";
68 clip_to: "label.text.clip";
69 description { state: "default" 0.0;
70 rel1.relative: 0.0 0.0;
71 rel2.relative: 1.0 1.0;
73 style: "textblock_style";
82 /* default label doesn't use it */
83 group { name: "elm/label/base_wrap/default";
84 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
85 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
86 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
88 part { name: "label.swallow.background";
90 description { state: "default" 0.0;
92 rel1 { relative: 0 0; to: "elm.text"; }
93 rel2 { relative: 1 1; to: "elm.text"; }
96 part { name: "elm.text";
101 description { state: "default" 0.0;
103 style: "textblock_style";
108 description { state: "charwrap_mode" 0.0;
110 style: "textblock_charwrap_style";
118 program { name: "default_on";
119 signal: "elm,state,default";
121 action: STATE_SET "default" 0.0;
124 program { name: "charwrap_on";
125 signal: "elm,state,charwrap";
127 action: STATE_SET "charwrap_mode" 0.0;
133 /* default label doesn't use it */
134 group { name: "elm/label/base_wrap_ellipsis/default";
135 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
136 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
137 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
139 part { name: "label.swallow.background";
141 description { state: "default" 0.0;
143 rel1 { relative: 0 0; to: "elm.text"; }
144 rel2 { relative: 1 1; to: "elm.text"; }
147 part { name: "elm.text";
152 description { state: "default" 0.0;
153 // FIXME : fixed for multiline ellipsis.
154 // does it need to make another ellipsis style?
157 style: "textblock_style";
162 description { state: "charwrap_mode" 0.0;
163 // FIXME : fixed for multiline ellipsis.
164 // does it need to make another ellipsis style?
167 style: "textblock_charwrap_style";
175 program { name: "default_on";
176 signal: "elm,state,default";
178 action: STATE_SET "default" 0.0;
181 program { name: "charwrap_on";
182 signal: "elm,state,charwrap";
184 action: STATE_SET "charwrap_mode" 0.0;
190 group { name: "elm/label/base/marker";
191 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
192 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
193 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
195 style { name: "textblock_style2";
196 base: "font=SLP:style=Bold font_size=14 align=center color=#fff wrap=word text_class=slp_bold";
199 tag: "hilight" "+ color=#ffff";
200 tag: "b" "+ color=#ffff";
205 part { name: "label.swallow.background";
207 description { state: "default" 0.0;
209 rel1 { relative: 0 0; to: "elm.text"; }
210 rel2 { relative: 1 1; to: "elm.text"; }
213 part { name: "elm.text";
217 description { state: "default" 0.0;
219 style: "textblock_style2";
228 /* default label doesn't use it */
229 group { name: "elm/label/base_wrap/marker";
230 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
231 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
232 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
234 part { name: "label.swallow.background";
236 description { state: "default" 0.0;
238 rel1 { relative: 0 0; to: "elm.text"; }
239 rel2 { relative: 1 1; to: "elm.text"; }
242 part { name: "elm.text";
247 description { state: "default" 0.0;
249 style: "textblock_style2";
258 group { name: "elm/label/base/titlebar/default";
259 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
260 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
261 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
263 part { name: "elm.text";
268 description { state: "default" 0.0;
270 font: "SLP:style=Bold";
282 group { name: "elm/label/base/titlebar/header";
283 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
284 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
285 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
287 style { name: "header_textblock_style";
288 base: "font=SLP:style=Medium font_size=34 color=#ffffff wrap=mixed";
292 tag: "em" "+ font=SLP:style=Oblique";
293 tag: "b" "+ font=SLP:style=Bold";
294 tag: "link" "+ color=#800 underline=on underline_color=#8008";
295 tag: "hilight" "+ font=SLP:style=Bold";
300 part { name: "elm.text";
305 description { state: "default" 0.0;
307 font: "SLP:style=Medium";
320 group { name: "elm/label/base/slide_long";
321 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
322 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
323 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
326 public g_duration, g_stopslide, g_timer_id, g_anim_id;
328 public message(Msg_Type:type, id, ...) {
329 if ((type == MSG_FLOAT_SET) && (id == 0)) {
331 duration = getfarg(2);
332 set_float(g_duration, duration);
335 public slide_to_end_anim(val, Float:pos) {
338 stopflag = get_int(g_stopslide);
339 if (stopflag == 1) return;
340 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
342 id = timer(0.5, "slide_to_begin", 1);
343 set_int(g_timer_id, id);
346 public slide_to_end() {
350 stopflag = get_int(g_stopslide);
351 if (stopflag == 1) return;
352 duration = get_float(g_duration);
353 id = anim(duration, "slide_to_end_anim", 1);
354 set_int(g_anim_id, id);
356 public slide_to_begin() {
359 stopflag = get_int(g_stopslide);
360 if (stopflag == 1) return;
361 set_state(PART:"elm.text", "slide_begin", 0.0);
362 id = timer(0.5, "slide_to_end", 1);
363 set_int(g_timer_id, id);
365 public start_slide() {
366 set_int(g_stopslide, 0);
367 set_state(PART:"elm.text", "slide_begin", 0.0);
370 public stop_slide() {
372 set_int(g_stopslide, 1);
373 id = get_int(g_anim_id);
375 id = get_int(g_timer_id);
377 set_state(PART:"elm.text", "default", 0.0);
382 part { name: "label.swallow.background";
384 description { state: "default" 0.0;
388 part { name: "label.text.clip";
390 description { state: "default" 0.0;
392 color: 255 255 255 255;
393 rel1 { relative: 0 0; to: "label.swallow.background"; }
394 rel2 { relative: 1 1; to: "label.swallow.background"; }
397 part { name: "elm.text";
401 clip_to: "label.text.clip";
402 description { state: "default" 0.0;
403 rel1.relative: 0.0 0.0;
404 rel2.relative: 1.0 1.0;
407 style: "textblock_style";
412 description { state: "slide_end" 0.0;
413 inherit: "default" 0.0;
414 rel1.relative: 0.0 0.0;
415 rel2.relative: 0.0 1.0;
418 description { state: "slide_begin" 0.0;
419 inherit: "default" 0.0;
420 rel1.relative: 1.0 0.0;
421 rel2.relative: 1.0 1.0;
427 program { name: "start_slide";
429 signal: "elm,state,slide,start";
434 program { name: "stop_slide";
436 signal: "elm,state,slide,stop";
445 group { name: "elm/label/base/slide_short";
446 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
447 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
448 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
451 public g_duration, g_stopslide, g_timer_id, g_anim_id;
453 public message(Msg_Type:type, id, ...) {
454 if ((type == MSG_FLOAT_SET) && (id == 0)) {
456 duration = getfarg(2);
457 set_float(g_duration, duration);
460 public slide_to_end_anim(val, Float:pos) {
463 stopflag = get_int(g_stopslide);
464 if (stopflag == 1) return;
465 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
467 id = timer(0.5, "slide_to_begin", 1);
468 set_int(g_timer_id, id);
471 public slide_to_end() {
475 stopflag = get_int(g_stopslide);
476 if (stopflag == 1) return;
477 duration = get_float(g_duration);
478 id = anim(duration, "slide_to_end_anim", 1);
479 set_int(g_anim_id, id);
481 public slide_to_begin() {
484 stopflag = get_int(g_stopslide);
485 if (stopflag == 1) return;
486 set_state(PART:"elm.text", "slide_begin", 0.0);
487 id = timer(0.5, "slide_to_end", 1);
488 set_int(g_timer_id, id);
490 public start_slide() {
491 set_int(g_stopslide, 0);
492 set_state(PART:"elm.text", "slide_begin", 0.0);
495 public stop_slide() {
497 set_int(g_stopslide, 1);
498 id = get_int(g_anim_id);
500 id = get_int(g_timer_id);
502 set_state(PART:"elm.text", "default", 0.0);
507 part { name: "label.swallow.background";
509 description { state: "default" 0.0;
513 part { name: "label.text.clip";
515 description { state: "default" 0.0;
517 color: 255 255 255 255;
518 rel1 { relative: 0 0; to: "label.swallow.background"; }
519 rel2 { relative: 1 1; to: "label.swallow.background"; }
522 part { name: "elm.text";
526 clip_to: "label.text.clip";
527 description { state: "default" 0.0;
528 rel1.relative: 0.0 0.0;
529 rel2.relative: 1.0 1.0;
532 style: "textblock_style";
537 description { state: "slide_end" 0.0;
538 inherit: "default" 0.0;
539 rel1.relative: 1.0 0.0;
540 rel2.relative: 1.0 1.0;
543 description { state: "slide_begin" 0.0;
544 inherit: "default" 0.0;
545 rel1.relative: 0.0 0.0;
546 rel2.relative: 0.0 1.0;
552 program { name: "start_slide";
554 signal: "elm,state,slide,start";
559 program { name: "stop_slide";
561 signal: "elm,state,slide,stop";
569 group { name: "elm/label/base/slide_bounce";
570 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
571 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
572 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
575 public g_duration, g_stopslide, g_timer_id, g_anim_id;
577 public message(Msg_Type:type, id, ...) {
578 if ((type == MSG_FLOAT_SET) && (id == 0)) {
580 duration = getfarg(2);
581 set_float(g_duration, duration);
584 public slide_to_end_anim(val, Float:pos) {
587 stopflag = get_int(g_stopslide);
588 if (stopflag == 1) return;
589 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
591 id = timer(0.5, "slide_to_begin", 1);
592 set_int(g_timer_id, id);
595 public slide_to_end() {
599 stopflag = get_int(g_stopslide);
600 if (stopflag == 1) return;
601 duration = get_float(g_duration);
602 id = anim(duration, "slide_to_end_anim", 1);
603 set_int(g_anim_id, id);
605 public slide_to_begin_anim(val, Float:pos) {
608 stopflag = get_int(g_stopslide);
609 if (stopflag == 1) return;
610 set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
612 id = timer(0.5, "slide_to_end", 1);
613 set_int(g_timer_id, id);
616 public slide_to_begin() {
620 stopflag = get_int(g_stopslide);
621 if (stopflag == 1) return;
622 duration = get_float(g_duration);
623 id = anim(duration, "slide_to_begin_anim", 1);
624 set_int(g_anim_id, id);
626 public start_slide() {
627 set_int(g_stopslide, 0);
628 set_state(PART:"elm.text", "slide_begin", 0.0);
631 public stop_slide() {
633 set_int(g_stopslide, 1);
634 id = get_int(g_anim_id);
636 id = get_int(g_timer_id);
638 set_state(PART:"elm.text", "default", 0.0);
643 part { name: "label.swallow.background";
645 description { state: "default" 0.0;
649 part { name: "label.text.clip";
651 description { state: "default" 0.0;
653 color: 255 255 255 255;
654 rel1 { relative: 0 0; to: "label.swallow.background"; }
655 rel2 { relative: 1 1; to: "label.swallow.background"; }
658 part { name: "elm.text";
662 clip_to: "label.text.clip";
663 description { state: "default" 0.0;
664 rel1.relative: 0.0 0.0;
665 rel2.relative: 1.0 1.0;
668 style: "textblock_style";
673 description { state: "slide_end" 0.0;
674 inherit: "default" 0.0;
675 rel1.relative: 1.0 0.0;
676 rel2.relative: 1.0 1.0;
679 description { state: "slide_begin" 0.0;
680 inherit: "default" 0.0;
681 rel1.relative: 0.0 0.0;
682 rel2.relative: 0.0 1.0;
688 program { name: "start_slide";
690 signal: "elm,state,slide,start";
695 program { name: "stop_slide";
697 signal: "elm,state,slide,stop";