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.text.clip";
51 description { state: "default" 0.0;
54 part { name: "elm.text";
57 clip_to: "label.text.clip";
58 description { state: "default" 0.0;
60 style: "textblock_style";
69 /* default label doesn't use it */
70 group { name: "elm/label/base_wrap/default";
71 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
72 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
73 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
75 part { name: "elm.text";
80 description { state: "default" 0.0;
82 style: "textblock_style";
87 description { state: "charwrap_mode" 0.0;
89 style: "textblock_charwrap_style";
97 program { name: "default_on";
98 signal: "elm,state,default";
100 action: STATE_SET "default" 0.0;
103 program { name: "charwrap_on";
104 signal: "elm,state,charwrap";
106 action: STATE_SET "charwrap_mode" 0.0;
112 /* default label doesn't use it */
113 group { name: "elm/label/base_wrap_ellipsis/default";
114 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
115 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
116 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
118 part { name: "elm.text";
123 description { state: "default" 0.0;
124 // FIXME : fixed for multiline ellipsis.
125 // does it need to make another ellipsis style?
128 style: "textblock_style";
133 description { state: "charwrap_mode" 0.0;
134 // FIXME : fixed for multiline ellipsis.
135 // does it need to make another ellipsis style?
138 style: "textblock_charwrap_style";
146 program { name: "default_on";
147 signal: "elm,state,default";
149 action: STATE_SET "default" 0.0;
152 program { name: "charwrap_on";
153 signal: "elm,state,charwrap";
155 action: STATE_SET "charwrap_mode" 0.0;
161 group { name: "elm/label/base/marker";
162 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
163 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
164 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
166 style { name: "textblock_style2";
167 base: "font=SLP:style=Bold font_size=14 align=center color=#fff wrap=word text_class=slp_bold";
170 tag: "hilight" "+ color=#ffff";
171 tag: "b" "+ color=#ffff";
176 part { name: "elm.text";
180 description { state: "default" 0.0;
182 style: "textblock_style2";
191 /* default label doesn't use it */
192 group { name: "elm/label/base_wrap/marker";
193 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
194 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
195 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
197 part { name: "elm.text";
202 description { state: "default" 0.0;
204 style: "textblock_style2";
213 group { name: "elm/label/base/titlebar/default";
214 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
215 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
216 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
218 part { name: "elm.text";
223 description { state: "default" 0.0;
225 font: "SLP:style=Bold";
237 group { name: "elm/label/base/titlebar/header";
238 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
239 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
240 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
242 style { name: "header_textblock_style";
243 base: "font=SLP:style=Medium font_size=34 color=#ffffff wrap=mixed";
247 tag: "em" "+ font=SLP:style=Oblique";
248 tag: "b" "+ font=SLP:style=Bold";
249 tag: "link" "+ color=#800 underline=on underline_color=#8008";
250 tag: "hilight" "+ font=SLP:style=Bold";
255 part { name: "elm.text";
260 description { state: "default" 0.0;
262 font: "SLP:style=Medium";
275 group { name: "elm/label/base/slide_long";
276 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
277 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
278 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
281 public g_duration, g_stopslide, g_timer_id, g_anim_id;
283 public message(Msg_Type:type, id, ...) {
284 if ((type == MSG_FLOAT_SET) && (id == 0)) {
286 duration = getfarg(2);
287 set_float(g_duration, duration);
290 public slide_to_end_anim(val, Float:pos) {
293 stopflag = get_int(g_stopslide);
294 if (stopflag == 1) return;
295 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
297 id = timer(0.5, "slide_to_begin", 1);
298 set_int(g_timer_id, id);
301 public slide_to_end() {
305 stopflag = get_int(g_stopslide);
306 if (stopflag == 1) return;
307 duration = get_float(g_duration);
308 id = anim(duration, "slide_to_end_anim", 1);
309 set_int(g_anim_id, id);
311 public slide_to_begin() {
314 stopflag = get_int(g_stopslide);
315 if (stopflag == 1) return;
316 set_state(PART:"elm.text", "slide_begin", 0.0);
317 id = timer(0.5, "slide_to_end", 1);
318 set_int(g_timer_id, id);
320 public start_slide() {
321 set_int(g_stopslide, 0);
322 set_state(PART:"elm.text", "slide_begin", 0.0);
325 public stop_slide() {
327 set_int(g_stopslide, 1);
328 id = get_int(g_anim_id);
330 id = get_int(g_timer_id);
332 set_state(PART:"elm.text", "default", 0.0);
337 part { name: "label.text.clip";
339 description { state: "default" 0.0;
342 part { name: "elm.text";
346 clip_to: "label.text.clip";
347 description { state: "default" 0.0;
348 rel1.relative: 0.0 0.0;
349 rel2.relative: 1.0 1.0;
352 style: "textblock_style";
357 description { state: "slide_end" 0.0;
358 inherit: "default" 0.0;
359 rel1.relative: 0.0 0.0;
360 rel2.relative: 0.0 1.0;
363 description { state: "slide_begin" 0.0;
364 inherit: "default" 0.0;
365 rel1.relative: 1.0 0.0;
366 rel2.relative: 1.0 1.0;
372 program { name: "start_slide";
374 signal: "elm,state,slide,start";
379 program { name: "stop_slide";
381 signal: "elm,state,slide,stop";
390 group { name: "elm/label/base/slide_short";
391 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
392 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
393 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
396 public g_duration, g_stopslide, g_timer_id, g_anim_id;
398 public message(Msg_Type:type, id, ...) {
399 if ((type == MSG_FLOAT_SET) && (id == 0)) {
401 duration = getfarg(2);
402 set_float(g_duration, duration);
405 public slide_to_end_anim(val, Float:pos) {
408 stopflag = get_int(g_stopslide);
409 if (stopflag == 1) return;
410 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
412 id = timer(0.5, "slide_to_begin", 1);
413 set_int(g_timer_id, id);
416 public slide_to_end() {
420 stopflag = get_int(g_stopslide);
421 if (stopflag == 1) return;
422 duration = get_float(g_duration);
423 id = anim(duration, "slide_to_end_anim", 1);
424 set_int(g_anim_id, id);
426 public slide_to_begin() {
429 stopflag = get_int(g_stopslide);
430 if (stopflag == 1) return;
431 set_state(PART:"elm.text", "slide_begin", 0.0);
432 id = timer(0.5, "slide_to_end", 1);
433 set_int(g_timer_id, id);
435 public start_slide() {
436 set_int(g_stopslide, 0);
437 set_state(PART:"elm.text", "slide_begin", 0.0);
440 public stop_slide() {
442 set_int(g_stopslide, 1);
443 id = get_int(g_anim_id);
445 id = get_int(g_timer_id);
447 set_state(PART:"elm.text", "default", 0.0);
452 part { name: "label.text.clip";
454 description { state: "default" 0.0;
457 part { name: "elm.text";
461 clip_to: "label.text.clip";
462 description { state: "default" 0.0;
463 rel1.relative: 0.0 0.0;
464 rel2.relative: 1.0 1.0;
467 style: "textblock_style";
472 description { state: "slide_end" 0.0;
473 inherit: "default" 0.0;
474 rel1.relative: 1.0 0.0;
475 rel2.relative: 1.0 1.0;
478 description { state: "slide_begin" 0.0;
479 inherit: "default" 0.0;
480 rel1.relative: 0.0 0.0;
481 rel2.relative: 0.0 1.0;
487 program { name: "start_slide";
489 signal: "elm,state,slide,start";
494 program { name: "stop_slide";
496 signal: "elm,state,slide,stop";
504 group { name: "elm/label/base/slide_bounce";
505 data.item: "default_font_size" LABEL_FONT_SIZE_INC;
506 data.item: "min_font_size" LABEL_MIN_FONT_SIZE_INC;
507 data.item: "max_font_size" LABEL_MAX_FONT_SIZE_INC;
510 public g_duration, g_stopslide, g_timer_id, g_anim_id;
512 public message(Msg_Type:type, id, ...) {
513 if ((type == MSG_FLOAT_SET) && (id == 0)) {
515 duration = getfarg(2);
516 set_float(g_duration, duration);
519 public slide_to_end_anim(val, Float:pos) {
522 stopflag = get_int(g_stopslide);
523 if (stopflag == 1) return;
524 set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
526 id = timer(0.5, "slide_to_begin", 1);
527 set_int(g_timer_id, id);
530 public slide_to_end() {
534 stopflag = get_int(g_stopslide);
535 if (stopflag == 1) return;
536 duration = get_float(g_duration);
537 id = anim(duration, "slide_to_end_anim", 1);
538 set_int(g_anim_id, id);
540 public slide_to_begin_anim(val, Float:pos) {
543 stopflag = get_int(g_stopslide);
544 if (stopflag == 1) return;
545 set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
547 id = timer(0.5, "slide_to_end", 1);
548 set_int(g_timer_id, id);
551 public slide_to_begin() {
555 stopflag = get_int(g_stopslide);
556 if (stopflag == 1) return;
557 duration = get_float(g_duration);
558 id = anim(duration, "slide_to_begin_anim", 1);
559 set_int(g_anim_id, id);
561 public start_slide() {
562 set_int(g_stopslide, 0);
563 set_state(PART:"elm.text", "slide_begin", 0.0);
566 public stop_slide() {
568 set_int(g_stopslide, 1);
569 id = get_int(g_anim_id);
571 id = get_int(g_timer_id);
573 set_state(PART:"elm.text", "default", 0.0);
578 part { name: "label.text.clip";
580 description { state: "default" 0.0;
583 part { name: "elm.text";
587 clip_to: "label.text.clip";
588 description { state: "default" 0.0;
589 rel1.relative: 0.0 0.0;
590 rel2.relative: 1.0 1.0;
593 style: "textblock_style";
598 description { state: "slide_end" 0.0;
599 inherit: "default" 0.0;
600 rel1.relative: 1.0 0.0;
601 rel2.relative: 1.0 1.0;
604 description { state: "slide_begin" 0.0;
605 inherit: "default" 0.0;
606 rel1.relative: 0.0 0.0;
607 rel2.relative: 0.0 1.0;
613 program { name: "start_slide";
615 signal: "elm,state,slide,start";
620 program { name: "stop_slide";
622 signal: "elm,state,slide,stop";