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.
24 #include "genlist_macro.edc"
25 #include "genlist_textblock_style.edc"
26 #include "genlist_normal.edc"
27 #include "genlist_sweep.edc"
28 #include "genlist_groupindex.edc"
29 #include "genlist_expandable.edc"
30 #include "genlist_decorate.edc"
33 group { name: "elm/genlist/base/dialogue";
34 alias: "elm/scroller/base/dialogue";
35 inherit: "elm/genlist/base/default";
38 description { state: "default" 0.0;
39 color: GENLIST_LIST_BG_COLOR;
42 part { name: "elm.padding.left";
45 description { state: "default" 0.0;
46 min: DIALOGUE_PADDING_SCROLLER 0;
50 rel2.relative: 0.0 1.0;
51 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
54 part { name: "elm.padding.right";
57 description { state: "default" 0.0;
58 min: DIALOGUE_PADDING_SCROLLER 0;
62 rel1.relative: 1.0 0.0;
63 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
66 part { name: "elm.swallow.content";
70 description { state: "default" 0.0;
73 to_x: "elm.padding.left";
77 to_x: "elm.padding.right";
82 part { name: "sb_vbar";
86 description { state: "default" 0.0;
89 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
107 group { name: "elm/list/base/matchlist";
109 public sbvis_v, sbvis_h, sbnever_v, sbalways_v, sbalways_h, sbvis_timer;
112 v = get_int(sbvis_v);
114 v = get_int(sbalways_v);
116 emit("do-hide-vbar", "");
120 v = get_int(sbvis_h);
122 v = get_int(sbalways_h);
124 emit("do-hide-hbar", "");
128 set_int(sbvis_timer, 0);
133 image: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE COMP;
134 image: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE COMP;
135 image: "bt_sm_shine.png" COMP;
136 image: "bt_sm_hilight.png" COMP;
137 image: "sb_runnerh.png" COMP;
138 image: "sb_runnerv.png" COMP;
139 image: "01_dialoguegroup_bg_default.png" COMP;
145 description { state: "default" 0.0;
148 color: 255 255 255 0;
154 description { state: "default" 0.0;
160 normal: "01_dialoguegroup_bg_default.png";
161 border: SCROLLER_MATCHLIST_SCROLLBAR_BG_IMAGE_BORDER;
167 part { name: "clipper";
171 description { state: "default" 0.0;
176 part { name: "elm.swallow.content";
180 description { state: "default" 0.0;
185 part { name: "conf_over";
188 description { state: "default" 0.0;
194 part { name: "sb_vbar_clip_master";
198 description { state: "default" 0.0;
200 description { state: "hidden" 0.0;
202 color: 255 255 255 0;
205 part { name: "sb_vbar_clip";
206 clip_to: "sb_vbar_clip_master";
210 description { state: "default" 0.0;
212 description { state: "hidden" 0.0;
214 color: 255 255 255 0;
217 part {name: "vbar.padding";
220 description { state: "default" 0.0;
221 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
222 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
226 to: "elm.swallow.content";
230 to: "elm.swallow.content";
234 part { name: "sb_vbar";
238 description { state: "default" 0.0;
241 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
246 to_y: "elm.swallow.content";
247 to_x: "elm.swallow.content";
252 to_y: "elm.swallow.content";
253 to_x: "vbar.padding";
257 part { name: "sb_vbar_runner";
258 clip_to: "sb_vbar_clip";
261 description { state: "default" 0.0;
262 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
263 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
268 normal: "sb_runnerv.png";
269 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_RUNNER_BORDER;
275 part { name: "elm.dragable.vbar";
276 clip_to: "sb_vbar_clip";
284 description { state: "default" 0.0;
286 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
287 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
299 normal: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE;
300 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE_BORDER;
306 part { name: "sb_vbar_over1";
307 clip_to: "sb_vbar_clip";
310 description { state: "default" 0.0;
311 rel1.to: "elm.dragable.vbar";
312 rel2.relative: 1.0 0.5;
313 rel2.to: "elm.dragable.vbar";
316 normal: "bt_sm_hilight.png";
317 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER1;
322 part { name: "sb_vbar_over2";
323 clip_to: "sb_vbar_clip";
326 description { state: "default" 0.0;
327 rel1.to: "elm.dragable.vbar";
328 rel2.to: "elm.dragable.vbar";
331 normal: "bt_sm_shine.png";
332 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER2;
337 part { name: "sb_hbar_clip_master";
340 description { state: "default" 0.0;
342 description { state: "hidden" 0.0;
344 color: 255 255 255 0;
347 part { name: "sb_hbar_clip";
348 clip_to: "sb_hbar_clip_master";
352 description { state: "default" 0.0;
354 description { state: "hidden" 0.0;
356 color: 255 255 255 0;
359 part {name: "hbar.padding";
362 description { state: "default" 0.0;
363 min: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
364 max: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
368 to: "elm.swallow.content";
372 to: "elm.swallow.content";
376 part { name: "sb_hbar";
380 description { state: "default" 0.0;
383 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
388 to_y: "elm.swallow.content";
389 to_x: "elm.swallow.content";
395 to_y: "hbar.padding";
399 part { name: "sb_hbar_runner";
400 clip_to: "sb_hbar_clip";
403 description { state: "default" 0.0;
404 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
405 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
410 normal: "sb_runnerh.png";
411 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_RUNNER_BORDER;
417 part { name: "elm.dragable.hbar";
418 clip_to: "sb_hbar_clip";
426 description { state: "default" 0.0;
428 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
429 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
440 color: 255 255 255 0;
442 normal: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE;
443 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE_BORDER;
449 part { name: "sb_hbar_over1";
450 clip_to: "sb_hbar_clip";
453 description { state: "default" 0.0;
454 rel1.to: "elm.dragable.hbar";
455 rel2.relative: 1.0 0.5;
456 rel2.to: "elm.dragable.hbar";
459 normal: "bt_sm_hilight.png";
460 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER1;
465 part { name: "sb_hbar_over2";
466 clip_to: "sb_hbar_clip";
469 description { state: "default" 0.0;
470 rel1.to: "elm.dragable.hbar";
471 rel2.to: "elm.dragable.hbar";
474 normal: "bt_sm_shine.png";
475 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER2;
482 program { name: "load";
486 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
487 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
490 set_int(sbalways_v, 0);
491 set_int(sbalways_h, 0);
492 set_int(sbvis_timer, 0);
493 set_int(sbnever_v, 0);
496 program { name: "vbar_show";
497 signal: "elm,action,show,vbar";
499 action: STATE_SET "default" 0.0;
500 target: "sb_vbar_clip_master";
502 program { name: "vbar_hide";
503 signal: "elm,action,hide,vbar";
505 action: STATE_SET "hidden" 0.0;
506 target: "sb_vbar_clip_master";
508 program { name: "vbar_show_always";
509 signal: "elm,action,show_always,vbar";
513 v = get_int(sbvis_v);
514 v |= get_int(sbalways_v);
516 set_int(sbalways_v, 1);
517 emit("do-show-vbar", "");
520 set_int(sbnever_v, 0);
523 program { name: "vbar_show_notalways";
524 signal: "elm,action,show_notalways,vbar";
528 v = get_int(sbalways_v);
530 set_int(sbalways_v, 0);
531 v = get_int(sbvis_v);
533 emit("do-hide-vbar", "");
537 set_int(sbnever_v, 0);
540 program { name: "vbar_hide_always";
541 signal: "elm,action,hide_always,vbar";
545 v1 = get_int(sbnever_v);
547 set_int(sbnever_v, 1);
548 set_int(sbalways_v, 0);
549 v2 = get_int(sbvis_v);
551 emit("do-hide-vbar", "");
557 program { name: "sb_vbar_show";
558 signal: "do-show-vbar";
560 action: STATE_SET "default" 0.0;
561 transition: LINEAR 1.0;
562 target: "sb_vbar_clip";
564 program { name: "sb_vbar_hide";
565 signal: "do-hide-vbar";
567 action: STATE_SET "hidden" 0.0;
568 transition: LINEAR 1.0;
569 target: "sb_vbar_clip";
571 program { name: "hbar_show";
572 signal: "elm,action,show,hbar";
574 action: STATE_SET "default" 0.0;
575 target: "sb_hbar_clip_master";
577 program { name: "hbar_hide";
578 signal: "elm,action,hide,hbar";
580 action: STATE_SET "hidden" 0.0;
581 target: "sb_hbar_clip_master";
583 program { name: "hbar_show_always";
584 signal: "elm,action,show_always,hbar";
588 v = get_int(sbvis_h);
589 v |= get_int(sbalways_h);
591 set_int(sbalways_h, 1);
592 emit("do-show-hbar", "");
597 program { name: "hbar_show_notalways";
598 signal: "elm,action,show_notalways,hbar";
602 v = get_int(sbalways_h);
604 set_int(sbalways_h, 0);
605 v = get_int(sbvis_h);
607 emit("do-hide-hbar", "");
613 program { name: "sb_hbar_show";
614 signal: "do-show-hbar";
616 action: STATE_SET "default" 0.0;
617 transition: LINEAR 1.0;
618 target: "sb_hbar_clip";
620 program { name: "sb_hbar_hide";
621 signal: "do-hide-hbar";
623 action: STATE_SET "hidden" 0.0;
624 transition: LINEAR 1.0;
625 target: "sb_hbar_clip";
627 program { name: "scroll";
628 signal: "elm,action,scroll";
630 action: STATE_SET "default" 0.0;
633 v = get_int(sbvis_v);
634 v |= get_int(sbalways_v);
635 v1 = get_int(sbnever_v);
637 emit("do-show-vbar", "");
640 v = get_int(sbvis_h);
641 v |= get_int(sbalways_h);
643 emit("do-show-hbar", "");
646 v = get_int(sbvis_timer);
647 if (v > 0) cancel_timer(v);
648 v = timer(0.5, "timer0", 0);
649 set_int(sbvis_timer, v);