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;
275 * but if TEXT MM width over 148
280 to: "button_image_padding";
284 to: "button_image_padding";
296 state: "default" 0.0;
313 font: "SLP:style=Bold";
318 description { state: "active" 0.0;
319 inherit: "default" 0.0;
323 part { name: "elm.dragable.pointer";
332 description { state: "default" 0.0;
347 part { name: "elm.swallow.event.0.bottom.padding";
350 description { state: "default" 0.0;
355 relative: 1.0 1.0; offset: 0 0;
360 part { name: "elm.swallow.event.0";
363 description { state: "default" 0.0;
373 to_y: "elm.swallow.event.0.bottom.padding";
377 part { name: "elm.swallow.event.1";
380 description { state: "default" 0.0;
384 to: "elm.swallow.index.1";
389 to: "elm.swallow.index.1";
397 program { name: "load";
401 run_program(PROGRAM:"initial.index0.active");
402 run_program(PROGRAM:"button.image.hidden");
403 timer(2.0, "index_hide_timer", 0);
406 program { name: "drag2";
408 source: "elm.dragable.index.1";
412 get_drag(PART:"elm.dragable.index.1", dx, dy);
413 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
414 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
417 program { name: "first_level_invisible";
418 signal: "hide_first_level";
420 action: STATE_SET "index1" 0.0;
421 target: "button_image";
423 program { name: "2nd_level_invisible";
424 signal: "hide_2nd_level";
426 action: STATE_SET "default" 0.0;
427 target: "button_image";
429 program { name: "index0.active";
430 signal: "elm,state,active";
432 action: STATE_SET "active" 0.0;
433 transition: DECELERATE 0.3;
434 target: "elm.swallow.index.0";
436 target: "index.0.bg.image.middle";
438 after: "disable_timer";
440 program { name: "initial.index0.active";
441 action: STATE_SET "active" 0.0;
442 transition: DECELERATE 0.3;
443 target: "elm.swallow.index.0";
445 target: "index.0.bg.image.middle";
446 after: "enable_timer";
448 program { name: "index0.inactive";
449 signal: "elm,state,inactive";
451 action: STATE_SET "default" 0.0;
452 transition: DECELERATE 0.3;
453 target: "elm.swallow.index.0";
455 target: "index.0.bg.image.middle";
457 program { name: "index1.inactive";
458 signal: "elm,state,level,0";
460 action: STATE_SET "default" 0.0;
461 transition: DECELERATE 0.3;
462 target: "elm.swallow.index.1";
464 target: "index.1.bg.image.middle";
466 program { name: "index1.active";
467 signal: "elm,state,level,1";
469 action: STATE_SET "active" 0.0;
470 transition: DECELERATE 0.3;
471 target: "elm.swallow.index.1";
473 target: "index.1.bg.image.middle";
475 program { name: "button.image.hidden";
476 signal: "elm,state,button,image,hide";
478 action: STATE_SET "invisible" 0.0;
479 target: "button_image";
481 program { name: "disable_timer";
483 set_int(timer_flag, 0);
486 program { name: "enable_timer";
488 set_int(timer_flag, 1);
494 group { name: "elm/index/item/vertical/default";
495 alias: "elm/index/item_odd/vertical/default";
496 data.item: "stacking" "above";
497 data.item: "selectraise" "on";
499 part { name: "elm.text";
506 state: "default" 0.0;
515 font: "SLP:style=Medium";
521 description { state: "active" 0.0;
522 inherit: "default" 0.0;
528 program { name: "active";
529 signal: "elm,state,active";
531 action: STATE_SET "active" 0.0;
532 transition: DECELERATE 1.0;
535 program { name: "inactive";
536 signal: "elm,state,inactive";
538 action: STATE_SET "default" 0.0;
539 transition: DECELERATE 0.1;