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";
23 public index_hide_timer(val) {
24 if (get_int(timer_flag) == 1)
25 run_program(PROGRAM:"index0.inactive");
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");
371 timer(2.0, "index_hide_timer", 0);
374 program { name: "drag2";
376 source: "elm.dragable.index.1";
380 get_drag(PART:"elm.dragable.index.1", dx, dy);
381 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
382 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
385 program { name: "index0.active";
386 signal: "elm,state,active";
388 action: STATE_SET "active" 0.0;
390 after: "disable_timer";
392 program { name: "initial.index0.active";
393 action: STATE_SET "active" 0.0;
395 after: "enable_timer";
397 program { name: "index0.inactive";
398 signal: "elm,state,inactive";
400 action: STATE_SET "default" 0.0;
401 transition: DECELERATE 0.3;
404 program { name: "index.active";
405 signal: "elm,indicator,state,active";
407 action: STATE_SET "active" 0.0;
410 program { name: "index.inactive";
411 signal: "elm,indicator,state,inactive";
413 action: STATE_SET "default" 0.0;
414 transition: DECELERATE 0.3;
418 name: "access.active";
419 signal: "elm,access,state,active";
421 action: STATE_SET "active" 0.0;
425 name: "access.inactive";
426 signal: "elm,access,state,inactive";
428 action: STATE_SET "default" 0.0;
431 program { name: "disable_timer";
433 set_int(timer_flag, 0);
436 program { name: "enable_timer";
438 set_int(timer_flag, 1);
444 group { name: "elm/index/item/vertical/default";
445 alias: "elm/index/item_odd/vertical/default";
446 data.item: "stacking" "above";
447 data.item: "selectraise" "on";
449 image: "00_fast_scroll_rollover_bg_focus.png" COMP;
450 image: "00_fast_scroll_rollover_bg_line_focus.png" COMP;
453 part { name: "scroll.bg";
457 description { state: "default" 0.0;
461 normal: "00_fast_scroll_rollover_bg_focus.png";
465 description { state: "active" 0.0;
466 inherit: "default" 0.0;
470 part { name: "bottom.line";
475 state: "default" 0.0;
477 min: 0 INDEX_BOTTOM_LINE_WIDTH_INC;
487 color: INDEX_BOTTOM_LINE_COLOR_INC;
490 state: "inactive" 0.0;
491 inherit: "default" 0.0;
495 part { name: "focus.top";
500 state: "default" 0.0;
502 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
513 part { name: "focus.bottom";
518 state: "default" 0.0;
520 min: 0 INDEX_LEFT_LINE_WIDTH_INC;
533 part { name: "right.padding";
538 state: "default" 0.0;
540 min: INDEX_ITEM_PADDING_SIZE_INC 0;
551 part { name: "item.bg";
556 state: "default" 0.0;
562 to_x: "right.padding";
563 to_y: "focus.bottom";
567 normal: "00_fast_scroll_rollover_bg_line_focus.png";
568 border: INDEX_BG_NINEPATCH_INC;
574 inherit: "default" 0.0;
578 part { name: "elm.text";
583 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
585 state: "default" 0.0;
592 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
594 font: "Tizen:style=Bold";
595 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
601 description { state: "active" 0.0;
602 inherit: "default" 0.0;
603 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
608 program { name: "active";
609 signal: "elm,state,active";
611 action: STATE_SET "active" 0.0;
612 transition: DECELERATE 0.0;
617 program { name: "inactive";
618 signal: "elm,state,inactive";
620 action: STATE_SET "default" 0.0;
621 transition: DECELERATE 0.0;
627 signal: "elm,last,item";
629 action: STATE_SET "inactive" 0.0;
630 target: "bottom.line";
635 name: "elm/index/base/vertical/pagecontrol";
636 alias: "elm/index/base/horizontal/pagecontrol";
641 description { state: "default" 0.0;
643 color: 255 255 255 0;
645 description { state: "active" 0.0;
647 color: 255 255 255 255;
650 part { name: "elm.swallow.index.0";
655 state: "default" 0.0;
657 rel1.relative: 0.5 0.5;
658 rel2.relative: 0.5 0.5;
661 part { name: "elm.swallow.event.0";
663 description { state: "default" 0.0;
669 program { name: "active";
670 signal: "elm,state,active";
672 action: STATE_SET "active" 0.0;
673 transition: DECELERATE 0.5;
676 program { name: "inactive";
677 signal: "elm,state,inactive";
679 action: STATE_SET "default" 0.0;
680 transition: DECELERATE 0.5;
686 name: "elm/index/item/vertical/pagecontrol";
687 alias: "elm/index/item_odd/vertical/pagecontrol";
688 alias: "elm/index/item/horizontal/pagecontrol";
689 alias: "elm/index/item_odd/horizontal/pagecontrol";
691 image: "00_page_indicator_01.png" COMP;
692 image: "00_page_indicator_02.png" COMP;
698 description { state: "default" 0.0;
699 min: INDEX_PAGECONTROL_IND_INC;
700 max: INDEX_PAGECONTROL_IND_INC;
705 part { name: "indicator1";
709 description { state: "default" 0.0;
712 min: INDEX_PAGECONTROL_IND_MIN_INC;
713 max: INDEX_PAGECONTROL_IND_MIN_INC;
715 normal: "00_page_indicator_02.png";
718 description { state: "active" 0.0;
719 inherit: "default" 0.0;
723 part { name: "indicator2";
727 description { state: "default" 0.0;
730 min: INDEX_PAGECONTROL_IND_MIN_INC;
731 max: INDEX_PAGECONTROL_IND_MIN_INC;
732 image.normal: "00_page_indicator_01.png";
735 description { state: "active" 0.0;
736 inherit: "default" 0.0;
742 program { name: "active";
743 signal: "elm,state,active";
745 action: STATE_SET "active" 0.0;
746 target: "indicator1";
747 target: "indicator2";
748 transition: LINEAR 0.2;
750 program { name: "inactive";
751 signal: "elm,state,inactive";
753 action: STATE_SET "default" 0.0;
754 target: "indicator1";
755 target: "indicator2";
756 transition: LINEAR 0.2;