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;
177 description { state: "up" 0.0;
178 rel1.relative: 1.0 0.0;
179 rel2.relative: 1.0 0.0;
183 description { state: "down" 0.0;
184 rel1.relative: 1.0 1.0;
185 rel2.relative: 1.0 1.0;
190 part { name: "button_image";
193 description { state: "default" 0.0;
197 to_x: "left.padding";
201 to_x: "right.padding";
202 to_y: "bottom.padding";
205 normal: "00_fast_scroll_popup_bg.png";
206 border: INDEX_POPUP_BG_NINEPATCH_INC;
212 part { name: "top.padding";
217 state: "default" 0.0;
219 min: 0 INDEX_POPUP_TOP_PADDING_SIZE_INC;
232 part { name: "bottom.padding";
237 state: "default" 0.0;
239 min: 0 INDEX_POPUP_BOTTOM_PADDING_SIZE_INC;
252 part { name: "left.padding";
257 state: "default" 0.0;
259 min: INDEX_POPUP_LEFT_PADDING_SIZE_INC 0;
272 part { name: "right.padding";
277 state: "default" 0.0;
279 min: INDEX_POPUP_RIGHT_PADDING_SIZE_INC 0;
299 state: "default" 0.0;
302 min: INDEX_POPUP_TEXT_WIDTH_INC INDEX_POPUP_TEXT_HEIGHT_INC;
309 color: INDEX_POPUP_TEXT_COLOR_INC;
311 font: "Tizen:style=Medium";
312 size: INDEX_POPUP_TEXT_SIZE_INC;
318 part { name: "elm.dragable.pointer";
327 description { state: "default" 0.0;
342 part { name: "elm.swallow.event.0";
345 description { state: "default" 0.0;
357 description { state: "inactive" 0.0;
358 inherit: "default" 0.0;
365 description { state: "default" 0.0;
368 to: "elm.swallow.index.0";
372 to: "elm.swallow.index.0";
377 description { state: "active" 0.0;
378 inherit: "default" 0.0;
384 program { name: "load";
388 run_program(PROGRAM:"initial.index0.active");
389 run_program(PROGRAM:"initial.left.line.active");
392 program { name: "drag2";
394 source: "elm.dragable.index.1";
398 get_drag(PART:"elm.dragable.index.1", dx, dy);
399 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
400 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
403 program { name: "initial.index0.active";
404 action: STATE_SET "active" 0.0;
406 after: "index0.inactive";
408 program { name: "index0.active";
409 signal: "elm,state,active";
411 action: STATE_SET "active" 0.0;
413 after: "disable_timer";
415 program { name: "index0.inactive";
416 signal: "elm,state,inactive";
420 v = get_int(timer_id);
421 if (v > 0) cancel_timer(v);
422 run_program(PROGRAM:"enable_timer");
423 v = timer(2.0, "index_hide_timer", 0);
424 set_int(timer_id, v);
427 program { name: "index0.hide";
428 action: STATE_SET "default" 0.0;
429 transition: DECELERATE 0.3;
431 after: "disable_timer";
433 program { name: "initial.left.line.active";
434 action: STATE_SET "active" 0.0;
436 after: "left.line.inactive";
438 program { name: "left.line.active";
439 signal: "mouse,down,1";
440 source: "elm.swallow.event.0";
441 action: STATE_SET "active" 0.0;
443 after: "disable_timer_2";
445 program { name: "left.line.inactive";
446 signal: "mouse,up,1";
447 source: "elm.swallow.event.0";
450 v = get_int(timer_id_2);
451 if (v > 0) cancel_timer(v);
452 run_program(PROGRAM:"enable_timer_2");
453 v = timer(2.0, "left_line_hide_timer", 0);
454 set_int(timer_id_2, v);
457 program { name: "left.line.dim";
458 action: STATE_SET "default" 0.0;
459 transition: DECELERATE 0.3;
461 after: "disable_timer_2";
463 program { name: "index.active";
464 signal: "elm,indicator,state,active";
466 action: STATE_SET "active" 0.0;
469 program { name: "index.inactive";
470 signal: "elm,indicator,state,inactive";
472 action: STATE_SET "default" 0.0;
473 transition: DECELERATE 0.3;
476 program { name: "event.inactive";
477 signal: "elm,priority,up";
479 action: STATE_SET "inactive" 0.0;
480 target: "elm.swallow.event.0";
482 program { name: "index.up";
483 signal: "elm,priority,up";
485 action: STATE_SET "up" 0.0;
486 target: "elm.swallow.index.0";
487 after: "index.go.down";
489 program { name: "index.go.down";
490 action: STATE_SET "default" 0.0;
491 transition: LINEAR 0.3;
492 target: "elm.swallow.index.0";
493 after: "event.active";
495 program { name: "event.inactive2";
496 signal: "elm,priority,down";
498 action: STATE_SET "inactive" 0.0;
499 target: "elm.swallow.event.0";
501 program { name: "index.down";
502 signal: "elm,priority,down";
504 action: STATE_SET "down" 0.0;
505 target: "elm.swallow.index.0";
506 after: "index.go.up";
508 program { name: "index.go.up";
509 action: STATE_SET "default" 0.0;
510 transition: LINEAR 0.3;
511 target: "elm.swallow.index.0";
512 after: "event.active";
514 program { name: "event.active";
515 action: STATE_SET "default" 0.0;
516 target: "elm.swallow.event.0";
519 name: "access.active";
520 signal: "elm,access,state,active";
522 action: STATE_SET "active" 0.0;
526 name: "access.inactive";
527 signal: "elm,access,state,inactive";
529 action: STATE_SET "default" 0.0;
532 program { name: "disable_timer";
534 set_int(timer_flag, 0);
537 program { name: "enable_timer";
539 set_int(timer_flag, 1);
542 program { name: "disable_timer_2";
544 set_int(timer_flag_2, 0);
547 program { name: "enable_timer_2";
549 set_int(timer_flag_2, 1);
555 group { name: "elm/index/item/vertical/default";
556 alias: "elm/index/item_odd/vertical/default";
557 data.item: "stacking" "above";
558 data.item: "selectraise" "on";
560 image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
563 part { name: "scroll.bg";
567 description { state: "default" 0.0;
570 color: INDEX_SCROLL_BG_COLOR_INC;
573 description { state: "active" 0.0;
574 inherit: "default" 0.0;
578 part { name: "divider";
583 state: "default" 0.0;
585 min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
595 color: INDEX_DIVIDER_COLOR_INC;
598 state: "inactive" 0.0;
599 inherit: "default" 0.0;
603 part { name: "focus.top";
608 state: "default" 0.0;
610 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
621 part { name: "focus.bottom";
626 state: "default" 0.0;
628 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
641 part { name: "right.padding";
646 state: "default" 0.0;
648 min: INDEX_ITEM_PADDING_SIZE_INC 0;
659 part { name: "item.bg";
664 state: "default" 0.0;
670 to_x: "right.padding";
671 to_y: "focus.bottom";
675 normal: "00_fast_scroll_rollover_bg_line_focus.png";
676 border: INDEX_BG_NINEPATCH_INC;
682 inherit: "default" 0.0;
686 part { name: "elm.text";
691 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
693 state: "default" 0.0;
694 rel1.relative: 0.0 0.0;
695 rel2.relative: 1.0 1.0;
696 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
698 font: "Tizen:style=Bold";
699 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
704 description { state: "active" 0.0;
705 inherit: "default" 0.0;
706 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
711 program { name: "active";
712 signal: "elm,state,active";
714 action: STATE_SET "active" 0.0;
715 transition: DECELERATE 0.0;
720 program { name: "inactive";
721 signal: "elm,state,inactive";
723 action: STATE_SET "default" 0.0;
724 transition: DECELERATE 0.0;
730 signal: "elm,last,item";
732 action: STATE_SET "inactive" 0.0;
738 name: "elm/index/base/vertical/pagecontrol";
739 alias: "elm/index/base/horizontal/pagecontrol";
744 description { state: "default" 0.0;
746 color: 255 255 255 0;
748 description { state: "active" 0.0;
750 color: 255 255 255 255;
753 part { name: "elm.swallow.index.0";
758 state: "default" 0.0;
760 rel1.relative: 0.5 0.5;
761 rel2.relative: 0.5 0.5;
764 part { name: "elm.swallow.event.0";
766 description { state: "default" 0.0;
772 program { name: "active";
773 signal: "elm,state,active";
775 action: STATE_SET "active" 0.0;
776 transition: DECELERATE 0.5;
779 program { name: "inactive";
780 signal: "elm,state,inactive";
782 action: STATE_SET "default" 0.0;
783 transition: DECELERATE 0.5;
789 name: "elm/index/item/vertical/pagecontrol";
790 alias: "elm/index/item_odd/vertical/pagecontrol";
791 alias: "elm/index/item/horizontal/pagecontrol";
792 alias: "elm/index/item_odd/horizontal/pagecontrol";
794 image: "00_page_indicator_01.png" COMP;
795 image: "00_page_indicator_02.png" COMP;
801 description { state: "default" 0.0;
802 min: INDEX_PAGECONTROL_IND_INC;
803 max: INDEX_PAGECONTROL_IND_INC;
808 part { name: "indicator1";
812 description { state: "default" 0.0;
815 min: INDEX_PAGECONTROL_IND_MIN_INC;
816 max: INDEX_PAGECONTROL_IND_MIN_INC;
818 normal: "00_page_indicator_02.png";
821 description { state: "active" 0.0;
822 inherit: "default" 0.0;
826 part { name: "indicator2";
830 description { state: "default" 0.0;
833 min: INDEX_PAGECONTROL_IND_MIN_INC;
834 max: INDEX_PAGECONTROL_IND_MIN_INC;
835 image.normal: "00_page_indicator_01.png";
838 description { state: "active" 0.0;
839 inherit: "default" 0.0;
845 program { name: "active";
846 signal: "elm,state,active";
848 action: STATE_SET "active" 0.0;
849 target: "indicator1";
850 target: "indicator2";
851 transition: LINEAR 0.2;
853 program { name: "inactive";
854 signal: "elm,state,inactive";
856 action: STATE_SET "default" 0.0;
857 target: "indicator1";
858 target: "indicator2";
859 transition: LINEAR 0.2;