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;
23 public index_hide_timer(val) {
24 if (get_int(timer_flag) == 1)
25 run_program(PROGRAM:"index0.hide");
30 image: "00_fast_scroll_rollover_bg.png" COMP;
31 image: "00_fast_scroll_popup_bg.png" COMP;
38 description { state: "default" 0.0;
42 description { state: "active" 0.0;
44 color: 255 255 255 255;
52 description { state: "default" 0.0;
56 description { state: "active" 0.0;
58 color: 255 255 255 255;
61 part { name: "elm.dragable.index.1";
68 confine: "elm.swallow.index.0";
70 description { state: "default" 0.0;
77 to: "elm.swallow.index.0";
82 to: "elm.swallow.index.0";
86 part { name: "index.top.padding";
91 min: 0 INDEX_PADDING_SIZE_INC;
95 to_x: "elm.swallow.index.0";
99 to_x: "elm.swallow.index.0";
104 part { name: "index.bottom.padding";
109 min: 0 INDEX_PADDING_SIZE_INC;
113 to_x: "elm.swallow.index.0";
117 to_x: "elm.swallow.index.0";
126 description { state: "default" 0.0;
128 to: "index.top.padding";
131 to: "index.bottom.padding";
134 normal: "00_fast_scroll_rollover_bg.png";
138 part { name: "left.line";
142 description { state: "default" 0.0;
144 min: INDEX_LEFT_LINE_WIDTH_INC 0;
154 color: INDEX_LEFT_LINE_COLOR_INC;
157 part { name: "elm.swallow.index.0";
161 description { state: "default" 0.0;
166 to_y: "index.top.padding";
170 to_y: "index.bottom.padding";
173 color: 255 255 255 255;
176 part { name: "button_image";
179 description { state: "default" 0.0;
183 to_x: "left.padding";
187 to_x: "right.padding";
188 to_y: "bottom.padding";
191 normal: "00_fast_scroll_popup_bg.png";
192 border: INDEX_POPUP_BG_NINEPATCH_INC;
198 part { name: "top.padding";
203 state: "default" 0.0;
205 min: 0 INDEX_POPUP_TOP_PADDING_SIZE_INC;
218 part { name: "bottom.padding";
223 state: "default" 0.0;
225 min: 0 INDEX_POPUP_BOTTOM_PADDING_SIZE_INC;
238 part { name: "left.padding";
243 state: "default" 0.0;
245 min: INDEX_POPUP_LEFT_PADDING_SIZE_INC 0;
258 part { name: "right.padding";
263 state: "default" 0.0;
265 min: INDEX_POPUP_RIGHT_PADDING_SIZE_INC 0;
285 state: "default" 0.0;
288 min: INDEX_POPUP_TEXT_WIDTH_INC INDEX_POPUP_TEXT_HEIGHT_INC;
295 color: INDEX_POPUP_TEXT_COLOR_INC;
297 font: "Tizen:style=Medium";
298 size: INDEX_POPUP_TEXT_SIZE_INC;
304 part { name: "elm.dragable.pointer";
313 description { state: "default" 0.0;
328 part { name: "elm.swallow.event.0";
331 description { state: "default" 0.0;
347 description { state: "default" 0.0;
350 to: "elm.swallow.index.0";
354 to: "elm.swallow.index.0";
359 description { state: "active" 0.0;
360 inherit: "default" 0.0;
366 program { name: "load";
370 run_program(PROGRAM:"initial.index0.active");
373 program { name: "drag2";
375 source: "elm.dragable.index.1";
379 get_drag(PART:"elm.dragable.index.1", dx, dy);
380 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
381 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
384 program { name: "index0.active";
385 signal: "elm,state,active";
387 action: STATE_SET "active" 0.0;
389 after: "disable_timer";
391 program { name: "initial.index0.active";
392 action: STATE_SET "active" 0.0;
394 after: "index0.inactive";
396 program { name: "index0.inactive";
397 signal: "elm,state,inactive";
401 v = get_int(timer_id);
402 if (v > 0) cancel_timer(v);
403 run_program(PROGRAM:"enable_timer");
404 v = timer(2.0, "index_hide_timer", 0);
405 set_int(timer_id, v);
408 program { name: "index0.hide";
409 action: STATE_SET "default" 0.0;
410 transition: DECELERATE 0.3;
412 after: "disable_timer";
414 program { name: "index.active";
415 signal: "elm,indicator,state,active";
417 action: STATE_SET "active" 0.0;
420 program { name: "index.inactive";
421 signal: "elm,indicator,state,inactive";
423 action: STATE_SET "default" 0.0;
424 transition: DECELERATE 0.3;
428 name: "access.active";
429 signal: "elm,access,state,active";
431 action: STATE_SET "active" 0.0;
435 name: "access.inactive";
436 signal: "elm,access,state,inactive";
438 action: STATE_SET "default" 0.0;
441 program { name: "disable_timer";
443 set_int(timer_flag, 0);
446 program { name: "enable_timer";
448 set_int(timer_flag, 1);
454 group { name: "elm/index/item/vertical/default";
455 alias: "elm/index/item_odd/vertical/default";
456 data.item: "stacking" "above";
457 data.item: "selectraise" "on";
459 image: "00_fast_scroll_rollover_bg_focus.png" COMP;
460 image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
463 part { name: "scroll.bg";
467 description { state: "default" 0.0;
471 normal: "00_fast_scroll_rollover_bg_focus.png";
475 description { state: "active" 0.0;
476 inherit: "default" 0.0;
480 part { name: "bottom.line";
485 state: "default" 0.0;
487 min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
497 color: INDEX_BOTTOM_LINE_COLOR_INC;
500 state: "inactive" 0.0;
501 inherit: "default" 0.0;
505 part { name: "focus.top";
510 state: "default" 0.0;
512 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
523 part { name: "focus.bottom";
528 state: "default" 0.0;
530 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
543 part { name: "right.padding";
548 state: "default" 0.0;
550 min: INDEX_ITEM_PADDING_SIZE_INC 0;
561 part { name: "item.bg";
566 state: "default" 0.0;
572 to_x: "right.padding";
573 to_y: "focus.bottom";
577 normal: "00_fast_scroll_rollover_bg_line_focus.png";
578 border: INDEX_BG_NINEPATCH_INC;
584 inherit: "default" 0.0;
588 part { name: "elm.text";
593 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
595 state: "default" 0.0;
602 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
604 font: "Tizen:style=Bold";
605 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
610 description { state: "active" 0.0;
611 inherit: "default" 0.0;
612 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
617 program { name: "active";
618 signal: "elm,state,active";
620 action: STATE_SET "active" 0.0;
621 transition: DECELERATE 0.0;
626 program { name: "inactive";
627 signal: "elm,state,inactive";
629 action: STATE_SET "default" 0.0;
630 transition: DECELERATE 0.0;
636 signal: "elm,last,item";
638 action: STATE_SET "inactive" 0.0;
639 target: "bottom.line";
644 name: "elm/index/base/vertical/pagecontrol";
645 alias: "elm/index/base/horizontal/pagecontrol";
650 description { state: "default" 0.0;
652 color: 255 255 255 0;
654 description { state: "active" 0.0;
656 color: 255 255 255 255;
659 part { name: "elm.swallow.index.0";
664 state: "default" 0.0;
666 rel1.relative: 0.5 0.5;
667 rel2.relative: 0.5 0.5;
670 part { name: "elm.swallow.event.0";
672 description { state: "default" 0.0;
678 program { name: "active";
679 signal: "elm,state,active";
681 action: STATE_SET "active" 0.0;
682 transition: DECELERATE 0.5;
685 program { name: "inactive";
686 signal: "elm,state,inactive";
688 action: STATE_SET "default" 0.0;
689 transition: DECELERATE 0.5;
695 name: "elm/index/item/vertical/pagecontrol";
696 alias: "elm/index/item_odd/vertical/pagecontrol";
697 alias: "elm/index/item/horizontal/pagecontrol";
698 alias: "elm/index/item_odd/horizontal/pagecontrol";
700 image: "00_page_indicator_01.png" COMP;
701 image: "00_page_indicator_02.png" COMP;
707 description { state: "default" 0.0;
708 min: INDEX_PAGECONTROL_IND_INC;
709 max: INDEX_PAGECONTROL_IND_INC;
714 part { name: "indicator1";
718 description { state: "default" 0.0;
721 min: INDEX_PAGECONTROL_IND_MIN_INC;
722 max: INDEX_PAGECONTROL_IND_MIN_INC;
724 normal: "00_page_indicator_02.png";
727 description { state: "active" 0.0;
728 inherit: "default" 0.0;
732 part { name: "indicator2";
736 description { state: "default" 0.0;
739 min: INDEX_PAGECONTROL_IND_MIN_INC;
740 max: INDEX_PAGECONTROL_IND_MIN_INC;
741 image.normal: "00_page_indicator_01.png";
744 description { state: "active" 0.0;
745 inherit: "default" 0.0;
751 program { name: "active";
752 signal: "elm,state,active";
754 action: STATE_SET "active" 0.0;
755 target: "indicator1";
756 target: "indicator2";
757 transition: LINEAR 0.2;
759 program { name: "inactive";
760 signal: "elm,state,inactive";
762 action: STATE_SET "default" 0.0;
763 target: "indicator1";
764 target: "indicator2";
765 transition: LINEAR 0.2;