4 * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7 * Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8 * Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 group { name: "elm/index/base/vertical/default";
29 public index_hide_timer(val) {
30 if (get_int(timer_flag) == 1)
31 run_program(PROGRAM:"index0.inactive");
36 image: "00_fast_scroll_popup_bg.png" COMP;
37 image: "01_fast_scroll_first_bg_dim_top.png" COMP;
38 image: "01_fast_scroll_first_bg_dim_middle.png" COMP;
39 image: "01_fast_scroll_first_bg_dim_bottom.png" COMP;
40 image: "01_fast_scroll_second_bg_top.png" COMP;
41 image: "01_fast_scroll_second_bg_middle.png" COMP;
42 image: "01_fast_scroll_second_bg_bottom.png" COMP;
43 image: "00_fast_scroll_rollover_bg.png" COMP;
44 image: "00_fast_scroll_rollover_index_1_bg.png" COMP;
47 item: "min_obj_height" "32";
48 item: "min_1st_level_obj_height" "32";
49 item: "special_char" "*";
56 description { state: "default" 0.0;
60 description { state: "active" 0.0;
62 color: 255 255 255 255;
70 description { state: "default" 0.0;
74 description { state: "active" 0.0;
76 color: 255 255 255 255;
79 part { name: "elm.dragable.index.1";
85 confine: "elm.swallow.index.0";
87 description { state: "default" 0.0;
93 to: "elm.swallow.index.0";
98 to: "elm.swallow.index.0";
102 part { name: "elm.swallow.index.1.padding.right";
105 description { state: "default" 0.0;
120 part { name: "index.1.bg.image.middle";
123 description { state: "default" 0.0;
126 to: "elm.swallow.index.1";
130 to: "elm.swallow.index.1";
134 normal: "00_fast_scroll_rollover_index_1_bg.png";
140 description { state: "active" 0.0;
141 inherit: "default" 0.0;
145 part { name: "elm.swallow.index.1";
149 description { state: "default" 0.0;
152 to_y: "elm.dragable.index.1";
157 to_y: "elm.dragable.index.1";
161 color: 255 255 255 0;
163 description { state: "active" 0.0;
164 inherit: "default" 0.0;
166 to_x: "elm.swallow.index.1.padding.right";
171 to_x: "elm.swallow.index.1.padding.right";
175 color: 255 255 255 255;
178 part { name: "index.0.bg.image.middle";
181 description { state: "default" 0.0;
183 to: "elm.swallow.index.0";
187 to: "elm.swallow.index.0";
191 normal: "00_fast_scroll_rollover_bg.png";
198 description { state: "active" 0.0;
199 inherit: "default" 0.0;
203 part { name: "elm.swallow.index.0";
207 description { state: "default" 0.0;
218 color: 255 255 255 50;
220 description { state: "active" 0.0;
221 inherit: "default" 0.0;
222 color: 255 255 255 255;
225 part { name: "button_image_padding";
230 description { state: "default" 0.0;
245 part { name: "button_image";
248 description { state: "default" 0.0;
253 to_y: "button_image_padding";
257 to_y: "button_image_padding";
262 normal: "00_fast_scroll_popup_bg.png";
268 description { state: "invisible" 0.0;
269 inherit: "default" 0.0;
272 description { state: "index1" 0.0;
273 inherit: "default" 0.0;
277 to: "button_image_padding";
281 to: "button_image_padding";
294 state: "default" 0.0;
310 font: "SLP:style=Bold";
315 description { state: "visible" 0.0;
316 inherit: "default" 0.0;
321 name: "elm.text.body";
328 state: "default" 0.0;
343 font: "SLP:style=Bold";
348 description { state: "invisible" 0.0;
349 inherit: "default" 0.0;
353 state: "color_change" 0.0;
354 inherit: "default" 0.0;
366 name: "elm.text.last";
373 state: "default" 0.0;
388 font: "SLP:style=Bold";
393 description { state: "invisible" 0.0;
394 inherit: "default" 0.0;
398 part { name: "elm.dragable.pointer";
407 description { state: "default" 0.0;
422 part { name: "elm.swallow.event.0.bottom.padding";
425 description { state: "default" 0.0;
430 relative: 1.0 1.0; offset: 0 0;
435 part { name: "elm.swallow.event.0";
438 description { state: "default" 0.0;
448 to_y: "elm.swallow.event.0.bottom.padding";
452 part { name: "elm.swallow.event.1";
455 description { state: "default" 0.0;
459 to: "elm.swallow.index.1";
464 to: "elm.swallow.index.1";
472 program { name: "load";
476 run_program(PROGRAM:"initial.index0.active");
477 run_program(PROGRAM:"button.image.hidden");
478 timer(2.0, "index_hide_timer", 0);
481 program { name: "drag2";
483 source: "elm.dragable.index.1";
487 get_drag(PART:"elm.dragable.index.1", dx, dy);
488 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
489 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
492 program { name: "first_level_invisible";
493 signal: "hide_first_level";
495 action: STATE_SET "default" 0.0;
496 target: "elm.text.body";
497 action: STATE_SET "index1" 0.0;
498 target: "button_image";
499 after: "2nd_level_visible";
501 program { name: "2nd_level_visible";
502 signal: "show_2nd_level";
504 action: STATE_SET "visible" 0.0;
507 program { name: "first_level_visible";
508 signal: "show_first_level";
510 action: STATE_SET "default" 0.0;
511 target: "elm.text.last";
512 action: STATE_SET "color_change" 0.0;
513 target: "elm.text.body";
515 program { name: "2nd_level_invisible";
516 signal: "hide_2nd_level";
518 action: STATE_SET "default" 0.0;
519 target: "button_image";
520 action: STATE_SET "default" 0.0;
522 after: "first_level_visible";
524 program { name: "index0.active";
525 signal: "elm,state,active";
527 action: STATE_SET "active" 0.0;
528 transition: DECELERATE 0.3;
529 target: "elm.swallow.index.0";
531 target: "index.0.bg.image.middle";
532 after: "disable_timer";
534 program { name: "initial.index0.active";
535 action: STATE_SET "active" 0.0;
536 transition: DECELERATE 0.3;
537 target: "elm.swallow.index.0";
539 target: "index.0.bg.image.middle";
540 after: "enable_timer";
542 program { name: "index0.inactive";
543 signal: "elm,state,inactive";
545 action: STATE_SET "default" 0.0;
546 transition: DECELERATE 0.3;
547 target: "elm.swallow.index.0";
549 target: "index.0.bg.image.middle";
551 program { name: "index1.inactive";
552 signal: "elm,state,level,0";
554 action: STATE_SET "default" 0.0;
555 transition: DECELERATE 0.3;
556 target: "elm.swallow.index.1";
558 target: "index.1.bg.image.middle";
560 program { name: "index1.active";
561 signal: "elm,state,level,1";
563 action: STATE_SET "active" 0.0;
564 transition: DECELERATE 0.3;
565 target: "elm.swallow.index.1";
567 target: "index.1.bg.image.middle";
569 program { name: "button.image.hidden";
570 signal: "elm,state,button,image,hide";
572 action: STATE_SET "invisible" 0.0;
573 target: "button_image";
574 target: "elm.text.last";
575 target: "elm.text.body";
577 program { name: "disable_timer";
579 set_int(timer_flag, 0);
582 program { name: "enable_timer";
584 set_int(timer_flag, 1);
590 group { name: "elm/index/item/vertical/default";
591 alias: "elm/index/item_odd/vertical/default";
592 data.item: "stacking" "above";
593 data.item: "selectraise" "on";
595 part { name: "elm.text";
602 state: "default" 0.0;
611 font: "SLP:style=Medium";
617 description { state: "active" 0.0;
618 inherit: "default" 0.0;
624 program { name: "active";
625 signal: "elm,state,active";
627 action: STATE_SET "active" 0.0;
628 transition: DECELERATE 1.0;
631 program { name: "inactive";
632 signal: "elm,state,inactive";
634 action: STATE_SET "default" 0.0;
635 transition: DECELERATE 0.1;