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_popup_bg.png" COMP;
33 item: "min_obj_height" "32";
34 item: "min_1st_level_obj_height" "32";
35 item: "special_char" "*";
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";
71 confine: "elm.swallow.index.0";
73 description { state: "default" 0.0;
79 to: "elm.swallow.index.0";
84 to: "elm.swallow.index.0";
88 part { name: "elm.swallow.index.1.padding.right";
91 description { state: "default" 0.0;
92 min: INDEX_LEVEL_PADDING_INC 0;
106 part { name: "elm.swallow.index.1";
110 description { state: "default" 0.0;
113 to_y: "elm.dragable.index.1";
118 to_y: "elm.dragable.index.1";
122 color: 255 255 255 0;
124 description { state: "active" 0.0;
125 inherit: "default" 0.0;
127 to_x: "elm.swallow.index.1.padding.right";
132 to_x: "elm.swallow.index.1.padding.right";
136 color: 255 255 255 255;
139 part { name: "elm.swallow.index.0";
143 description { state: "default" 0.0;
153 color: 255 255 255 50;
155 description { state: "active" 0.0;
156 inherit: "default" 0.0;
157 color: 255 255 255 255;
160 part { name: "button_image_padding";
165 description { state: "default" 0.0;
180 part { name: "button_image";
183 description { state: "default" 0.0;
185 min: INDEX_1ST_LEVEL_POPUP_WIDTH_INC INDEX_POPUP_HEIGHT_INC;
194 relative: 1.067 1.083;
198 normal: "00_fast_scroll_popup_bg.png";
199 border: INDEX_POPUP_BG_NINEPATCH_INC;
204 description { state: "invisible" 0.0;
205 inherit: "default" 0.0;
208 description { state: "index1" 0.0;
209 inherit: "default" 0.0;
210 min: INDEX_2ND_LEVEL_POPUP_WIDTH_INC INDEX_POPUP_HEIGHT_INC;
212 description { state: "active" 0.0;
213 inherit: "default" 0.0;
224 state: "default" 0.0;
230 to_y: "button_image_padding";
234 to_y: "button_image_padding";
237 color: INDEX_POPUP_TEXT_COLOR_INC;
240 font: "Tizen:style=Medium";
241 size: INDEX_POPUP_TEXT_SIZE_INC;
246 description { state: "active" 0.0;
247 inherit: "default" 0.0;
251 part { name: "elm.dragable.pointer";
260 description { state: "default" 0.0;
275 part { name: "elm.swallow.event.0.bottom.padding";
278 description { state: "default" 0.0;
283 relative: 1.0 1.0; offset: 0 0;
288 part { name: "elm.swallow.event.0";
291 description { state: "default" 0.0;
301 to_y: "elm.swallow.event.0.bottom.padding";
305 part { name: "elm.swallow.event.1";
308 description { state: "default" 0.0;
312 to: "elm.swallow.index.1";
317 to: "elm.swallow.index.1";
325 program { name: "load";
329 run_program(PROGRAM:"initial.index0.active");
330 run_program(PROGRAM:"button.image.hidden");
331 timer(2.0, "index_hide_timer", 0);
334 program { name: "drag2";
336 source: "elm.dragable.index.1";
340 get_drag(PART:"elm.dragable.index.1", dx, dy);
341 custom_state(PART:"elm.dragable.index.1", "default", 0.0);
342 set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
345 program { name: "index0.active";
346 signal: "elm,state,active";
348 action: STATE_SET "active" 0.0;
349 transition: DECELERATE 0.3;
350 target: "elm.swallow.index.0";
352 after: "disable_timer";
354 program { name: "initial.index0.active";
355 action: STATE_SET "active" 0.0;
356 transition: DECELERATE 0.3;
357 target: "elm.swallow.index.0";
359 after: "enable_timer";
361 program { name: "index0.inactive";
362 signal: "elm,state,inactive";
364 action: STATE_SET "default" 0.0;
365 transition: DECELERATE 0.3;
366 target: "elm.swallow.index.0";
369 program { name: "index1.inactive";
370 signal: "elm,state,level,0";
372 action: STATE_SET "default" 0.0;
373 transition: DECELERATE 0.3;
374 target: "elm.swallow.index.1";
377 program { name: "index1.active";
378 signal: "elm,state,level,1";
380 action: STATE_SET "active" 0.0;
381 transition: DECELERATE 0.3;
382 target: "elm.swallow.index.1";
385 program { name: "index.active";
386 signal: "elm,indicator,state,active";
388 action: STATE_SET "active" 0.0;
389 transition: DECELERATE 0.5;
391 target: "elm.swallow.index.0";
394 target: "button_image";
396 program { name: "index.inactive";
397 signal: "elm,indicator,state,inactive";
399 action: STATE_SET "default" 0.0;
400 transition: DECELERATE 0.5;
403 program { name: "button.image.hidden";
404 signal: "elm,state,button,image,hide";
406 action: STATE_SET "invisible" 0.0;
407 target: "button_image";
409 program { name: "disable_timer";
411 set_int(timer_flag, 0);
414 program { name: "enable_timer";
416 set_int(timer_flag, 1);
422 group { name: "elm/index/item/vertical/default";
423 alias: "elm/index/item_odd/vertical/default";
424 data.item: "stacking" "above";
425 data.item: "selectraise" "on";
427 image: "00_fast_scroll_rollover_bg_focus.png" COMP;
430 part { name: "scroll.bg";
435 state: "default" 0.0;
439 color: INDEX_SCROLL_BG_COLOR_INC;
443 inherit: "default" 0.0;
447 part { name: "bottom.line";
452 state: "default" 0.0;
455 relative: 0.0 1.0; offset: 0 -1;
460 color: INDEX_BOTTOM_LINE_COLOR_INC;
463 part { name: "left.line";
468 state: "default" 0.0;
474 relative: 0.0 1.0; offset: 1 0;
476 color: INDEX_LEFT_LINE_COLOR_INC;
481 relative: 0.0 0.0; offset: 0 -INDEX_ITEM_HEIGHT_INC;
484 relative: 0.0 1.0; offset: 1 +INDEX_ITEM_HEIGHT_INC;
486 color: INDEX_SCROLL_BG_COLOR_INC;
489 part { name: "item.bg";
494 state: "default" 0.0;
497 relative: 0.0 0.0; offset: 0 -INDEX_ITEM_HEIGHT_INC;
500 relative: 1.0 1.0; offset: 0 +INDEX_ITEM_HEIGHT_INC;
503 normal: "00_fast_scroll_rollover_bg_focus.png";
504 border: INDEX_BG_NINEPATCH_INC;
510 inherit: "default" 0.0;
514 part { name: "elm.text";
519 min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
521 state: "default" 0.0;
528 color: INDEX_ROLLOVER_TEXT_COLOR_INC;
530 font: "Tizen:style=Bold";
531 size: INDEX_ROLLOVER_TEXT_SIZE_INC;
537 description { state: "active" 0.0;
538 inherit: "default" 0.0;
539 color: INDEX_ROLLOVER_ACTIVE_TEXT_COLOR_INC;
544 program { name: "active";
545 signal: "elm,state,active";
547 action: STATE_SET "active" 0.0;
548 transition: DECELERATE 0.0;
554 program { name: "inactive";
555 signal: "elm,state,inactive";
557 action: STATE_SET "default" 0.0;
558 transition: DECELERATE 0.0;
567 name: "elm/index/base/vertical/pagecontrol";
568 alias: "elm/index/base/horizontal/pagecontrol";
573 description { state: "default" 0.0;
575 color: 255 255 255 0;
577 description { state: "active" 0.0;
579 color: 255 255 255 255;
582 part { name: "elm.swallow.index.0";
587 state: "default" 0.0;
589 rel1.relative: 0.5 0.5;
590 rel2.relative: 0.5 0.5;
593 part { name: "elm.swallow.event.0";
595 description { state: "default" 0.0;
601 program { name: "active";
602 signal: "elm,state,active";
604 action: STATE_SET "active" 0.0;
605 transition: DECELERATE 0.5;
608 program { name: "inactive";
609 signal: "elm,state,inactive";
611 action: STATE_SET "default" 0.0;
612 transition: DECELERATE 0.5;
618 name: "elm/index/item/vertical/pagecontrol";
619 alias: "elm/index/item_odd/vertical/pagecontrol";
620 alias: "elm/index/item/horizontal/pagecontrol";
621 alias: "elm/index/item_odd/horizontal/pagecontrol";
623 image: "00_page_indicator_01.png" COMP;
624 image: "00_page_indicator_02.png" COMP;
630 description { state: "default" 0.0;
631 min: INDEX_PAGECONTROL_IND_INC;
632 max: INDEX_PAGECONTROL_IND_INC;
637 part { name: "indicator1";
641 description { state: "default" 0.0;
644 min: INDEX_PAGECONTROL_IND_MIN_INC;
645 max: INDEX_PAGECONTROL_IND_MIN_INC;
647 normal: "00_page_indicator_02.png";
650 description { state: "active" 0.0;
651 inherit: "default" 0.0;
655 part { name: "indicator2";
659 description { state: "default" 0.0;
662 min: INDEX_PAGECONTROL_IND_MIN_INC;
663 max: INDEX_PAGECONTROL_IND_MIN_INC;
664 image.normal: "00_page_indicator_01.png";
667 description { state: "active" 0.0;
668 inherit: "default" 0.0;
674 program { name: "active";
675 signal: "elm,state,active";
677 action: STATE_SET "active" 0.0;
678 target: "indicator1";
679 target: "indicator2";
680 transition: LINEAR 0.2;
682 program { name: "inactive";
683 signal: "elm,state,inactive";
685 action: STATE_SET "default" 0.0;
686 target: "indicator1";
687 target: "indicator2";
688 transition: LINEAR 0.2;