3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 group { name: "elm/index/base/vertical/default";
22 public timer_id, timer_flag, timer_id_2, timer_flag_2;
23 public index_hide_timer(val) {
24 if (get_int(timer_flag) == 1)
25 run_program(PROGRAM:"index0.hide");
28 public left_line_hide_timer(val) {
29 if (get_int(timer_flag_2) == 1)
30 run_program(PROGRAM:"left.line.dim");
35 image: "00_fast_scroll_rollover_bg.png" COMP;
36 image: "00_fast_scroll_popup_bg.png" COMP;
43 description { state: "default" 0.0;
47 description { state: "active" 0.0;
49 color: 255 255 255 255;
57 description { state: "default" 0.0;
61 description { state: "active" 0.0;
63 color: 255 255 255 255;
66 part { name: "elm.dragable.index.1";
73 confine: "elm.swallow.index.0";
75 description { state: "default" 0.0;
82 to: "elm.swallow.index.0";
87 to: "elm.swallow.index.0";
91 part { name: "index.top.padding";
96 min: 0 INDEX_PADDING_SIZE_INC;
100 to_x: "elm.swallow.index.0";
104 to_x: "elm.swallow.index.0";
109 part { name: "index.bottom.padding";
114 min: 0 INDEX_PADDING_SIZE_INC;
118 to_x: "elm.swallow.index.0";
122 to_x: "elm.swallow.index.0";
131 description { state: "default" 0.0;
132 rel1.to: "index.top.padding";
133 rel2.to: "index.bottom.padding";
134 image.normal: "00_fast_scroll_rollover_bg.png";
137 part { name: "left.line";
141 description { state: "default" 0.0;
143 min: INDEX_LEFT_LINE_WIDTH_INC 0;
153 color: INDEX_DIVIDER_COLOR_INC;
155 description { state: "active" 0.0;
156 inherit: "default" 0.0;
157 color: INDEX_LEFT_LINE_COLOR_INC;
160 part { name: "elm.swallow.index.0";
164 description { state: "default" 0.0;
169 to_y: "index.top.padding";
173 to_y: "index.bottom.padding";
176 color: 255 255 255 255;
179 part { name: "button_image";
182 description { state: "default" 0.0;
186 to_x: "left.padding";
190 to_x: "right.padding";
191 to_y: "bottom.padding";
194 normal: "00_fast_scroll_popup_bg.png";
195 border: INDEX_POPUP_BG_NINEPATCH_INC;
201 part { name: "top.padding";
206 state: "default" 0.0;
208 min: 0 INDEX_POPUP_TOP_PADDING_SIZE_INC;
221 part { name: "bottom.padding";
226 state: "default" 0.0;
228 min: 0 INDEX_POPUP_BOTTOM_PADDING_SIZE_INC;
241 part { name: "left.padding";
246 state: "default" 0.0;
248 min: INDEX_POPUP_LEFT_PADDING_SIZE_INC 0;
261 part { name: "right.padding";
266 state: "default" 0.0;
268 min: INDEX_POPUP_RIGHT_PADDING_SIZE_INC 0;
288 state: "default" 0.0;
291 min: INDEX_POPUP_TEXT_WIDTH_INC INDEX_POPUP_TEXT_HEIGHT_INC;
298 color: INDEX_POPUP_TEXT_COLOR_INC;
300 font: "Tizen:style=Medium";
301 size: INDEX_POPUP_TEXT_SIZE_INC;
307 part { name: "elm.dragable.pointer";
316 description { state: "default" 0.0;
331 part { name: "elm.swallow.event.0";
334 description { state: "default" 0.0;
350 description { state: "default" 0.0;
353 to: "elm.swallow.index.0";
357 to: "elm.swallow.index.0";
362 description { state: "active" 0.0;
363 inherit: "default" 0.0;
369 program { name: "load";
373 run_program(PROGRAM:"initial.index0.active");
374 run_program(PROGRAM:"initial.left.line.active");
377 program { name: "drag2";
379 source: "elm.dragable.index.1";
383 get_drag(PART:"elm.dragable.index.1", dx, dy);
384 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
385 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
388 program { name: "initial.index0.active";
389 action: STATE_SET "active" 0.0;
391 after: "index0.inactive";
393 program { name: "index0.active";
394 signal: "elm,state,active";
396 action: STATE_SET "active" 0.0;
398 after: "disable_timer";
400 program { name: "index0.inactive";
401 signal: "elm,state,inactive";
405 v = get_int(timer_id);
406 if (v > 0) cancel_timer(v);
407 run_program(PROGRAM:"enable_timer");
408 v = timer(2.0, "index_hide_timer", 0);
409 set_int(timer_id, v);
412 program { name: "index0.hide";
413 action: STATE_SET "default" 0.0;
414 transition: DECELERATE 0.3;
416 after: "disable_timer";
418 program { name: "initial.left.line.active";
419 action: STATE_SET "active" 0.0;
421 after: "left.line.inactive";
423 program { name: "left.line.active";
424 signal: "mouse,down,1";
425 source: "elm.swallow.event.0";
426 action: STATE_SET "active" 0.0;
428 after: "disable_timer_2";
430 program { name: "left.line.inactive";
431 signal: "mouse,up,1";
432 source: "elm.swallow.event.0";
435 v = get_int(timer_id_2);
436 if (v > 0) cancel_timer(v);
437 run_program(PROGRAM:"enable_timer_2");
438 v = timer(2.0, "left_line_hide_timer", 0);
439 set_int(timer_id_2, v);
442 program { name: "left.line.dim";
443 action: STATE_SET "default" 0.0;
444 transition: DECELERATE 0.3;
446 after: "disable_timer_2";
448 program { name: "index.active";
449 signal: "elm,indicator,state,active";
451 action: STATE_SET "active" 0.0;
454 program { name: "index.inactive";
455 signal: "elm,indicator,state,inactive";
457 action: STATE_SET "default" 0.0;
458 transition: DECELERATE 0.3;
462 name: "access.active";
463 signal: "elm,access,state,active";
465 action: STATE_SET "active" 0.0;
469 name: "access.inactive";
470 signal: "elm,access,state,inactive";
472 action: STATE_SET "default" 0.0;
475 program { name: "disable_timer";
477 set_int(timer_flag, 0);
480 program { name: "enable_timer";
482 set_int(timer_flag, 1);
485 program { name: "disable_timer_2";
487 set_int(timer_flag_2, 0);
490 program { name: "enable_timer_2";
492 set_int(timer_flag_2, 1);
498 group { name: "elm/index/item/vertical/default";
499 alias: "elm/index/item_odd/vertical/default";
500 data.item: "stacking" "above";
501 data.item: "selectraise" "on";
503 image: "00_fast_scroll_rollover_bg.png" COMP;
504 image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
507 part { name: "scroll.bg";
511 description { state: "default" 0.0;
515 normal: "00_fast_scroll_rollover_bg.png";
519 description { state: "active" 0.0;
520 inherit: "default" 0.0;
524 part { name: "divider";
529 state: "default" 0.0;
531 min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
541 color: INDEX_DIVIDER_COLOR_INC;
544 state: "inactive" 0.0;
545 inherit: "default" 0.0;
549 part { name: "focus.top";
554 state: "default" 0.0;
556 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
567 part { name: "focus.bottom";
572 state: "default" 0.0;
574 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
587 part { name: "right.padding";
592 state: "default" 0.0;
594 min: INDEX_ITEM_PADDING_SIZE_INC 0;
605 part { name: "item.bg";
610 state: "default" 0.0;
616 to_x: "right.padding";
617 to_y: "focus.bottom";
621 normal: "00_fast_scroll_rollover_bg_line_focus.png";
622 border: INDEX_BG_NINEPATCH_INC;
628 inherit: "default" 0.0;
632 part { name: "elm.text";
637 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
639 state: "default" 0.0;
640 rel1.relative: 0.0 0.0;
641 rel2.relative: 1.0 1.0;
642 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
644 font: "Tizen:style=Bold";
645 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
650 description { state: "active" 0.0;
651 inherit: "default" 0.0;
652 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
657 program { name: "active";
658 signal: "elm,state,active";
660 action: STATE_SET "active" 0.0;
661 transition: DECELERATE 0.0;
666 program { name: "inactive";
667 signal: "elm,state,inactive";
669 action: STATE_SET "default" 0.0;
670 transition: DECELERATE 0.0;
676 signal: "elm,last,item";
678 action: STATE_SET "inactive" 0.0;
684 name: "elm/index/base/vertical/pagecontrol";
685 alias: "elm/index/base/horizontal/pagecontrol";
690 description { state: "default" 0.0;
692 color: 255 255 255 0;
694 description { state: "active" 0.0;
696 color: 255 255 255 255;
699 part { name: "elm.swallow.index.0";
704 state: "default" 0.0;
706 rel1.relative: 0.5 0.5;
707 rel2.relative: 0.5 0.5;
710 part { name: "elm.swallow.event.0";
712 description { state: "default" 0.0;
718 program { name: "active";
719 signal: "elm,state,active";
721 action: STATE_SET "active" 0.0;
722 transition: DECELERATE 0.5;
725 program { name: "inactive";
726 signal: "elm,state,inactive";
728 action: STATE_SET "default" 0.0;
729 transition: DECELERATE 0.5;
735 name: "elm/index/item/vertical/pagecontrol";
736 alias: "elm/index/item_odd/vertical/pagecontrol";
737 alias: "elm/index/item/horizontal/pagecontrol";
738 alias: "elm/index/item_odd/horizontal/pagecontrol";
740 image: "00_page_indicator_01.png" COMP;
741 image: "00_page_indicator_02.png" COMP;
747 description { state: "default" 0.0;
748 min: INDEX_PAGECONTROL_IND_INC;
749 max: INDEX_PAGECONTROL_IND_INC;
754 part { name: "indicator1";
758 description { state: "default" 0.0;
761 min: INDEX_PAGECONTROL_IND_MIN_INC;
762 max: INDEX_PAGECONTROL_IND_MIN_INC;
764 normal: "00_page_indicator_02.png";
767 description { state: "active" 0.0;
768 inherit: "default" 0.0;
772 part { name: "indicator2";
776 description { state: "default" 0.0;
779 min: INDEX_PAGECONTROL_IND_MIN_INC;
780 max: INDEX_PAGECONTROL_IND_MIN_INC;
781 image.normal: "00_page_indicator_01.png";
784 description { state: "active" 0.0;
785 inherit: "default" 0.0;
791 program { name: "active";
792 signal: "elm,state,active";
794 action: STATE_SET "active" 0.0;
795 target: "indicator1";
796 target: "indicator2";
797 transition: LINEAR 0.2;
799 program { name: "inactive";
800 signal: "elm,state,inactive";
802 action: STATE_SET "default" 0.0;
803 target: "indicator1";
804 target: "indicator2";
805 transition: LINEAR 0.2;