2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
23 #include "genlist_macro.edc"
24 #include "genlist_textblock_style.edc"
26 #include "genlist_normal.edc"
27 #include "genlist_sweep.edc"
28 #include "genlist_group_index.edc"
29 #include "genlist_expandable.edc"
30 #include "genlist_decorate.edc"
31 #include "../scroller.edc"
33 group { name: "elm/genlist/base/dialogue";
34 inherit: "elm/scroller/base/default";
36 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
41 v = get_int(sbalways_v);
43 emit("do-hide-vbar", "");
49 v = get_int(sbalways_h);
51 emit("do-hide-hbar", "");
55 set_int(sbvis_timer, 0);
60 part { name: "elm.padding.left";
63 description { state: "default" 0.0;
64 min: GENLIST_PADDING_16_INC 0;
68 rel2.relative: 0.0 1.0;
69 color: GENLIST_PART_BG_COLOR_INC;
72 part { name: "elm.padding.right";
75 description { state: "default" 0.0;
76 min: GENLIST_PADDING_16_INC 0;
80 rel1.relative: 1.0 0.0;
81 color: GENLIST_PART_BG_COLOR_INC;
87 description { state: "default" 0.0;
90 to_x: "elm.padding.left";
94 to_x: "elm.padding.right";
102 group { name: "elm/list/base/matchlist";
104 public sbvis_v, sbvis_h, sbnever_v, sbalways_v, sbalways_h, sbvis_timer;
107 v = get_int(sbvis_v);
109 v = get_int(sbalways_v);
111 emit("do-hide-vbar", "");
115 v = get_int(sbvis_h);
117 v = get_int(sbalways_h);
119 emit("do-hide-hbar", "");
123 set_int(sbvis_timer, 0);
128 image: "00_scroll_bar.png" COMP;
129 image: "bt_sm_shine.png" COMP;
130 image: "bt_sm_hilight.png" COMP;
131 image: "sb_runnerh.png" COMP;
132 image: "sb_runnerv.png" COMP;
133 image: "01_dialoguegroup_bg_default.png" COMP;
139 description { state: "default" 0.0;
142 color: 255 255 255 0;
145 part { name: "bg_image";
148 description { state: "default" 0.0;
154 normal: "01_dialoguegroup_bg_default.png";
161 part { name: "clipper";
165 description { state: "default" 0.0;
170 part { name: "elm.swallow.content";
174 description { state: "default" 0.0;
179 part { name: "conf_over";
182 description { state: "default" 0.0;
188 part { name: "sb_vbar_clip_master";
192 description { state: "default" 0.0;
194 description { state: "hidden" 0.0;
196 color: 255 255 255 0;
199 part { name: "sb_vbar_clip";
200 clip_to: "sb_vbar_clip_master";
204 description { state: "default" 0.0;
206 description { state: "hidden" 0.0;
208 color: 255 255 255 0;
211 part { name: "sb_vbar";
215 description { state: "default" 0.0;
231 part { name: "sb_vbar_runner";
232 clip_to: "sb_vbar_clip";
235 description { state: "default" 0.0;
242 normal: "sb_runnerv.png";
249 part { name: "elm.dragable.vbar";
250 clip_to: "sb_vbar_clip";
258 description { state: "default" 0.0;
272 normal: "00_scroll_bar.png";
279 part { name: "sb_vbar_over1";
280 clip_to: "sb_vbar_clip";
283 description { state: "default" 0.0;
284 rel1.to: "elm.dragable.vbar";
285 rel2.relative: 1.0 0.5;
286 rel2.to: "elm.dragable.vbar";
289 normal: "bt_sm_hilight.png";
295 part { name: "sb_vbar_over2";
296 clip_to: "sb_vbar_clip";
299 description { state: "default" 0.0;
300 rel1.to: "elm.dragable.vbar";
301 rel2.to: "elm.dragable.vbar";
304 normal: "bt_sm_shine.png";
310 part { name: "sb_hbar_clip_master";
313 description { state: "default" 0.0;
315 description { state: "hidden" 0.0;
317 color: 255 255 255 0;
320 part { name: "sb_hbar_clip";
321 clip_to: "sb_hbar_clip_master";
325 description { state: "default" 0.0;
327 description { state: "hidden" 0.0;
329 color: 255 255 255 0;
332 part { name: "sb_hbar";
336 description { state: "default" 0.0;
352 part { name: "sb_hbar_runner";
353 clip_to: "sb_hbar_clip";
356 description { state: "default" 0.0;
363 normal: "sb_runnerh.png";
370 part { name: "elm.dragable.hbar";
371 clip_to: "sb_hbar_clip";
379 description { state: "default" 0.0;
392 color: 255 255 255 0;
394 normal: "00_scroll_bar.png";
401 part { name: "sb_hbar_over1";
402 clip_to: "sb_hbar_clip";
405 description { state: "default" 0.0;
406 rel1.to: "elm.dragable.hbar";
407 rel2.relative: 1.0 0.5;
408 rel2.to: "elm.dragable.hbar";
411 normal: "bt_sm_hilight.png";
417 part { name: "sb_hbar_over2";
418 clip_to: "sb_hbar_clip";
421 description { state: "default" 0.0;
422 rel1.to: "elm.dragable.hbar";
423 rel2.to: "elm.dragable.hbar";
426 normal: "bt_sm_shine.png";
434 program { name: "load";
438 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
439 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
442 set_int(sbalways_v, 0);
443 set_int(sbalways_h, 0);
444 set_int(sbvis_timer, 0);
445 set_int(sbnever_v, 0);
448 program { name: "vbar_show";
449 signal: "elm,action,show,vbar";
451 action: STATE_SET "default" 0.0;
452 target: "sb_vbar_clip_master";
454 program { name: "vbar_hide";
455 signal: "elm,action,hide,vbar";
457 action: STATE_SET "hidden" 0.0;
458 target: "sb_vbar_clip_master";
460 program { name: "vbar_show_always";
461 signal: "elm,action,show_always,vbar";
465 v = get_int(sbvis_v);
466 v |= get_int(sbalways_v);
468 set_int(sbalways_v, 1);
469 emit("do-show-vbar", "");
472 set_int(sbnever_v, 0);
475 program { name: "vbar_show_notalways";
476 signal: "elm,action,show_notalways,vbar";
480 v = get_int(sbalways_v);
482 set_int(sbalways_v, 0);
483 v = get_int(sbvis_v);
485 emit("do-hide-vbar", "");
489 set_int(sbnever_v, 0);
492 program { name: "vbar_hide_always";
493 signal: "elm,action,hide_always,vbar";
497 v1 = get_int(sbnever_v);
499 set_int(sbnever_v, 1);
500 set_int(sbalways_v, 0);
501 v2 = get_int(sbvis_v);
503 emit("do-hide-vbar", "");
509 program { name: "sb_vbar_show";
510 signal: "do-show-vbar";
512 action: STATE_SET "default" 0.0;
513 transition: LINEAR 1.0;
514 target: "sb_vbar_clip";
516 program { name: "sb_vbar_hide";
517 signal: "do-hide-vbar";
519 action: STATE_SET "hidden" 0.0;
520 transition: LINEAR 1.0;
521 target: "sb_vbar_clip";
523 program { name: "hbar_show";
524 signal: "elm,action,show,hbar";
526 action: STATE_SET "default" 0.0;
527 target: "sb_hbar_clip_master";
529 program { name: "hbar_hide";
530 signal: "elm,action,hide,hbar";
532 action: STATE_SET "hidden" 0.0;
533 target: "sb_hbar_clip_master";
535 program { name: "hbar_show_always";
536 signal: "elm,action,show_always,hbar";
540 v = get_int(sbvis_h);
541 v |= get_int(sbalways_h);
543 set_int(sbalways_h, 1);
544 emit("do-show-hbar", "");
549 program { name: "hbar_show_notalways";
550 signal: "elm,action,show_notalways,hbar";
554 v = get_int(sbalways_h);
556 set_int(sbalways_h, 0);
557 v = get_int(sbvis_h);
559 emit("do-hide-hbar", "");
565 program { name: "sb_hbar_show";
566 signal: "do-show-hbar";
568 action: STATE_SET "default" 0.0;
569 transition: LINEAR 1.0;
570 target: "sb_hbar_clip";
572 program { name: "sb_hbar_hide";
573 signal: "do-hide-hbar";
575 action: STATE_SET "hidden" 0.0;
576 transition: LINEAR 1.0;
577 target: "sb_hbar_clip";
579 program { name: "scroll";
580 signal: "elm,action,scroll";
582 action: STATE_SET "default" 0.0;
585 v = get_int(sbvis_v);
586 v |= get_int(sbalways_v);
587 v1 = get_int(sbnever_v);
589 emit("do-show-vbar", "");
592 v = get_int(sbvis_h);
593 v |= get_int(sbalways_h);
595 emit("do-show-hbar", "");
598 v = get_int(sbvis_timer);
599 if (v > 0) cancel_timer(v);
600 v = timer(0.5, "timer0", 0);
601 set_int(sbvis_timer, v);