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_popup_bg.png" COMP;
42 description { state: "default" 0.0;
46 description { state: "active" 0.0;
48 color: 255 255 255 255;
56 description { state: "default" 0.0;
60 description { state: "active" 0.0;
62 color: 255 255 255 255;
65 part { name: "elm.dragable.index.1";
72 confine: "elm.swallow.index.0";
74 description { state: "default" 0.0;
81 to: "elm.swallow.index.0";
86 to: "elm.swallow.index.0";
90 part { name: "index.top.padding";
95 min: 0 INDEX_PADDING_SIZE_INC;
99 to_x: "elm.swallow.index.0";
103 to_x: "elm.swallow.index.0";
108 part { name: "index.bottom.padding";
113 min: 0 INDEX_PADDING_SIZE_INC;
117 to_x: "elm.swallow.index.0";
121 to_x: "elm.swallow.index.0";
130 description { state: "default" 0.0;
131 rel1.to: "index.top.padding";
132 rel2.to: "index.bottom.padding";
133 color: INDEX_SCROLL_BG_COLOR_INC;
136 part { name: "left.line";
140 description { state: "default" 0.0;
142 min: INDEX_LEFT_LINE_WIDTH_INC 0;
152 color: INDEX_SCROLL_BG_LINE_INC;
154 description { state: "active" 0.0;
155 inherit: "default" 0.0;
156 color: INDEX_LEFT_LINE_COLOR_INC;
159 part { name: "elm.swallow.index.0";
163 description { state: "default" 0.0;
168 to_y: "index.top.padding";
172 to_y: "index.bottom.padding";
175 color: 255 255 255 255;
178 part { name: "button_image";
181 description { state: "default" 0.0;
185 to_x: "left.padding";
189 to_x: "right.padding";
190 to_y: "bottom.padding";
193 normal: "00_fast_scroll_popup_bg.png";
194 border: INDEX_POPUP_BG_NINEPATCH_INC;
200 part { name: "top.padding";
205 state: "default" 0.0;
207 min: 0 INDEX_POPUP_TOP_PADDING_SIZE_INC;
220 part { name: "bottom.padding";
225 state: "default" 0.0;
227 min: 0 INDEX_POPUP_BOTTOM_PADDING_SIZE_INC;
240 part { name: "left.padding";
245 state: "default" 0.0;
247 min: INDEX_POPUP_LEFT_PADDING_SIZE_INC 0;
260 part { name: "right.padding";
265 state: "default" 0.0;
267 min: INDEX_POPUP_RIGHT_PADDING_SIZE_INC 0;
287 state: "default" 0.0;
290 min: INDEX_POPUP_TEXT_WIDTH_INC INDEX_POPUP_TEXT_HEIGHT_INC;
297 color: INDEX_POPUP_TEXT_COLOR_INC;
299 font: "Tizen:style=Medium";
300 size: INDEX_POPUP_TEXT_SIZE_INC;
306 part { name: "elm.dragable.pointer";
315 description { state: "default" 0.0;
330 part { name: "elm.swallow.event.0";
333 description { state: "default" 0.0;
349 description { state: "default" 0.0;
352 to: "elm.swallow.index.0";
356 to: "elm.swallow.index.0";
361 description { state: "active" 0.0;
362 inherit: "default" 0.0;
368 program { name: "load";
372 run_program(PROGRAM:"initial.index0.active");
373 run_program(PROGRAM:"initial.left.line.active");
376 program { name: "drag2";
378 source: "elm.dragable.index.1";
382 get_drag(PART:"elm.dragable.index.1", dx, dy);
383 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
384 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
387 program { name: "initial.index0.active";
388 action: STATE_SET "active" 0.0;
390 after: "index0.inactive";
392 program { name: "index0.active";
393 signal: "elm,state,active";
395 action: STATE_SET "active" 0.0;
397 after: "disable_timer";
399 program { name: "index0.inactive";
400 signal: "elm,state,inactive";
404 v = get_int(timer_id);
405 if (v > 0) cancel_timer(v);
406 run_program(PROGRAM:"enable_timer");
407 v = timer(2.0, "index_hide_timer", 0);
408 set_int(timer_id, v);
411 program { name: "index0.hide";
412 action: STATE_SET "default" 0.0;
413 transition: DECELERATE 0.3;
415 after: "disable_timer";
417 program { name: "initial.left.line.active";
418 action: STATE_SET "active" 0.0;
420 after: "left.line.inactive";
422 program { name: "left.line.active";
423 signal: "mouse,down,1";
424 source: "elm.swallow.event.0";
425 action: STATE_SET "active" 0.0;
427 after: "disable_timer_2";
429 program { name: "left.line.inactive";
430 signal: "mouse,up,1";
431 source: "elm.swallow.event.0";
434 v = get_int(timer_id_2);
435 if (v > 0) cancel_timer(v);
436 run_program(PROGRAM:"enable_timer_2");
437 v = timer(2.0, "left_line_hide_timer", 0);
438 set_int(timer_id_2, v);
441 program { name: "left.line.dim";
442 action: STATE_SET "default" 0.0;
443 transition: DECELERATE 0.3;
445 after: "disable_timer_2";
447 program { name: "index.active";
448 signal: "elm,indicator,state,active";
450 action: STATE_SET "active" 0.0;
453 program { name: "index.inactive";
454 signal: "elm,indicator,state,inactive";
456 action: STATE_SET "default" 0.0;
457 transition: DECELERATE 0.3;
461 name: "access.active";
462 signal: "elm,access,state,active";
464 action: STATE_SET "active" 0.0;
468 name: "access.inactive";
469 signal: "elm,access,state,inactive";
471 action: STATE_SET "default" 0.0;
474 program { name: "disable_timer";
476 set_int(timer_flag, 0);
479 program { name: "enable_timer";
481 set_int(timer_flag, 1);
484 program { name: "disable_timer_2";
486 set_int(timer_flag_2, 0);
489 program { name: "enable_timer_2";
491 set_int(timer_flag_2, 1);
497 group { name: "elm/index/item/vertical/default";
498 alias: "elm/index/item_odd/vertical/default";
499 data.item: "stacking" "above";
500 data.item: "selectraise" "on";
502 image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
505 part { name: "scroll.bg";
509 description { state: "default" 0.0;
512 color: INDEX_SCROLL_BG_COLOR_INC;
515 description { state: "active" 0.0;
516 inherit: "default" 0.0;
520 part { name: "divider";
525 state: "default" 0.0;
527 min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
537 color: INDEX_DIVIDER_COLOR_INC;
540 state: "inactive" 0.0;
541 inherit: "default" 0.0;
545 part { name: "focus.top";
550 state: "default" 0.0;
552 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
563 part { name: "focus.bottom";
568 state: "default" 0.0;
570 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
583 part { name: "right.padding";
588 state: "default" 0.0;
590 min: INDEX_ITEM_PADDING_SIZE_INC 0;
601 part { name: "item.bg";
606 state: "default" 0.0;
612 to_x: "right.padding";
613 to_y: "focus.bottom";
617 normal: "00_fast_scroll_rollover_bg_line_focus.png";
618 border: INDEX_BG_NINEPATCH_INC;
624 inherit: "default" 0.0;
628 part { name: "elm.text";
633 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
635 state: "default" 0.0;
636 rel1.relative: 0.0 0.0;
637 rel2.relative: 1.0 1.0;
638 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
640 font: "Tizen:style=Bold";
641 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
646 description { state: "active" 0.0;
647 inherit: "default" 0.0;
648 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
653 program { name: "active";
654 signal: "elm,state,active";
656 action: STATE_SET "active" 0.0;
657 transition: DECELERATE 0.0;
662 program { name: "inactive";
663 signal: "elm,state,inactive";
665 action: STATE_SET "default" 0.0;
666 transition: DECELERATE 0.0;
672 signal: "elm,last,item";
674 action: STATE_SET "inactive" 0.0;
680 name: "elm/index/base/vertical/pagecontrol";
681 alias: "elm/index/base/horizontal/pagecontrol";
686 description { state: "default" 0.0;
688 color: 255 255 255 0;
690 description { state: "active" 0.0;
692 color: 255 255 255 255;
695 part { name: "elm.swallow.index.0";
700 state: "default" 0.0;
702 rel1.relative: 0.5 0.5;
703 rel2.relative: 0.5 0.5;
706 part { name: "elm.swallow.event.0";
708 description { state: "default" 0.0;
714 program { name: "active";
715 signal: "elm,state,active";
717 action: STATE_SET "active" 0.0;
718 transition: DECELERATE 0.5;
721 program { name: "inactive";
722 signal: "elm,state,inactive";
724 action: STATE_SET "default" 0.0;
725 transition: DECELERATE 0.5;
731 name: "elm/index/item/vertical/pagecontrol";
732 alias: "elm/index/item_odd/vertical/pagecontrol";
733 alias: "elm/index/item/horizontal/pagecontrol";
734 alias: "elm/index/item_odd/horizontal/pagecontrol";
736 image: "00_page_indicator_01.png" COMP;
737 image: "00_page_indicator_02.png" COMP;
743 description { state: "default" 0.0;
744 min: INDEX_PAGECONTROL_IND_INC;
745 max: INDEX_PAGECONTROL_IND_INC;
750 part { name: "indicator1";
754 description { state: "default" 0.0;
757 min: INDEX_PAGECONTROL_IND_MIN_INC;
758 max: INDEX_PAGECONTROL_IND_MIN_INC;
760 normal: "00_page_indicator_02.png";
763 description { state: "active" 0.0;
764 inherit: "default" 0.0;
768 part { name: "indicator2";
772 description { state: "default" 0.0;
775 min: INDEX_PAGECONTROL_IND_MIN_INC;
776 max: INDEX_PAGECONTROL_IND_MIN_INC;
777 image.normal: "00_page_indicator_01.png";
780 description { state: "active" 0.0;
781 inherit: "default" 0.0;
787 program { name: "active";
788 signal: "elm,state,active";
790 action: STATE_SET "active" 0.0;
791 target: "indicator1";
792 target: "indicator2";
793 transition: LINEAR 0.2;
795 program { name: "inactive";
796 signal: "elm,state,inactive";
798 action: STATE_SET "default" 0.0;
799 target: "indicator1";
800 target: "indicator2";
801 transition: LINEAR 0.2;