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"
31 #include "genlist_email.edc"
34 group { name: "elm/genlist/base/dialogue";
35 alias: "elm/scroller/base/dialogue";
36 inherit: "elm/genlist/base/default";
39 description { state: "default" 0.0;
40 color: GENLIST_LIST_BG_COLOR;
43 part { name: "elm.padding.left";
46 description { state: "default" 0.0;
47 min: DIALOGUE_PADDING_SCROLLER 0;
51 rel2.relative: 0.0 1.0;
52 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
55 part { name: "elm.padding.right";
58 description { state: "default" 0.0;
59 min: DIALOGUE_PADDING_SCROLLER 0;
63 rel1.relative: 1.0 0.0;
64 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
67 part { name: "elm.swallow.content";
71 description { state: "default" 0.0;
74 to_x: "elm.padding.left";
78 to_x: "elm.padding.right";
83 part { name: "sb_vbar";
87 description { state: "default" 0.0;
90 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
108 group { name: "elm/list/base/matchlist";
110 public sbvis_v, sbvis_h, sbnever_v, sbalways_v, sbalways_h, sbvis_timer;
113 v = get_int(sbvis_v);
115 v = get_int(sbalways_v);
117 emit("do-hide-vbar", "");
121 v = get_int(sbvis_h);
123 v = get_int(sbalways_h);
125 emit("do-hide-hbar", "");
129 set_int(sbvis_timer, 0);
134 image: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE COMP;
135 image: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE COMP;
136 image: "bt_sm_shine.png" COMP;
137 image: "bt_sm_hilight.png" COMP;
138 image: "sb_runnerh.png" COMP;
139 image: "sb_runnerv.png" COMP;
140 image: "01_dialoguegroup_bg_default.png" COMP;
146 description { state: "default" 0.0;
149 color: 255 255 255 0;
155 description { state: "default" 0.0;
161 normal: "01_dialoguegroup_bg_default.png";
162 border: SCROLLER_MATCHLIST_SCROLLBAR_BG_IMAGE_BORDER;
168 part { name: "clipper";
172 description { state: "default" 0.0;
177 part { name: "elm.swallow.content";
181 description { state: "default" 0.0;
186 part { name: "conf_over";
189 description { state: "default" 0.0;
195 part { name: "sb_vbar_clip_master";
199 description { state: "default" 0.0;
201 description { state: "hidden" 0.0;
203 color: 255 255 255 0;
206 part { name: "sb_vbar_clip";
207 clip_to: "sb_vbar_clip_master";
211 description { state: "default" 0.0;
213 description { state: "hidden" 0.0;
215 color: 255 255 255 0;
218 part {name: "vbar.padding";
221 description { state: "default" 0.0;
222 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
223 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
227 to: "elm.swallow.content";
231 to: "elm.swallow.content";
235 part { name: "sb_vbar";
239 description { state: "default" 0.0;
242 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
247 to_y: "elm.swallow.content";
248 to_x: "elm.swallow.content";
253 to_y: "elm.swallow.content";
254 to_x: "vbar.padding";
258 part { name: "sb_vbar_runner";
259 clip_to: "sb_vbar_clip";
262 description { state: "default" 0.0;
263 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
264 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
269 normal: "sb_runnerv.png";
270 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_RUNNER_BORDER;
276 part { name: "elm.dragable.vbar";
277 clip_to: "sb_vbar_clip";
285 description { state: "default" 0.0;
287 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
288 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
300 normal: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE;
301 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE_BORDER;
307 part { name: "sb_vbar_over1";
308 clip_to: "sb_vbar_clip";
311 description { state: "default" 0.0;
312 rel1.to: "elm.dragable.vbar";
313 rel2.relative: 1.0 0.5;
314 rel2.to: "elm.dragable.vbar";
317 normal: "bt_sm_hilight.png";
318 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER1;
323 part { name: "sb_vbar_over2";
324 clip_to: "sb_vbar_clip";
327 description { state: "default" 0.0;
328 rel1.to: "elm.dragable.vbar";
329 rel2.to: "elm.dragable.vbar";
332 normal: "bt_sm_shine.png";
333 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER2;
338 part { name: "sb_hbar_clip_master";
341 description { state: "default" 0.0;
343 description { state: "hidden" 0.0;
345 color: 255 255 255 0;
348 part { name: "sb_hbar_clip";
349 clip_to: "sb_hbar_clip_master";
353 description { state: "default" 0.0;
355 description { state: "hidden" 0.0;
357 color: 255 255 255 0;
360 part {name: "hbar.padding";
363 description { state: "default" 0.0;
364 min: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
365 max: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
369 to: "elm.swallow.content";
373 to: "elm.swallow.content";
377 part { name: "sb_hbar";
381 description { state: "default" 0.0;
384 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
389 to_y: "elm.swallow.content";
390 to_x: "elm.swallow.content";
396 to_y: "hbar.padding";
400 part { name: "sb_hbar_runner";
401 clip_to: "sb_hbar_clip";
404 description { state: "default" 0.0;
405 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
406 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
411 normal: "sb_runnerh.png";
412 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_RUNNER_BORDER;
418 part { name: "elm.dragable.hbar";
419 clip_to: "sb_hbar_clip";
427 description { state: "default" 0.0;
429 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
430 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
441 color: 255 255 255 0;
443 normal: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE;
444 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE_BORDER;
450 part { name: "sb_hbar_over1";
451 clip_to: "sb_hbar_clip";
454 description { state: "default" 0.0;
455 rel1.to: "elm.dragable.hbar";
456 rel2.relative: 1.0 0.5;
457 rel2.to: "elm.dragable.hbar";
460 normal: "bt_sm_hilight.png";
461 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER1;
466 part { name: "sb_hbar_over2";
467 clip_to: "sb_hbar_clip";
470 description { state: "default" 0.0;
471 rel1.to: "elm.dragable.hbar";
472 rel2.to: "elm.dragable.hbar";
475 normal: "bt_sm_shine.png";
476 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER2;
483 program { name: "load";
487 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
488 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
491 set_int(sbalways_v, 0);
492 set_int(sbalways_h, 0);
493 set_int(sbvis_timer, 0);
494 set_int(sbnever_v, 0);
497 program { name: "vbar_show";
498 signal: "elm,action,show,vbar";
500 action: STATE_SET "default" 0.0;
501 target: "sb_vbar_clip_master";
503 program { name: "vbar_hide";
504 signal: "elm,action,hide,vbar";
506 action: STATE_SET "hidden" 0.0;
507 target: "sb_vbar_clip_master";
509 program { name: "vbar_show_always";
510 signal: "elm,action,show_always,vbar";
514 v = get_int(sbvis_v);
515 v |= get_int(sbalways_v);
517 set_int(sbalways_v, 1);
518 emit("do-show-vbar", "");
521 set_int(sbnever_v, 0);
524 program { name: "vbar_show_notalways";
525 signal: "elm,action,show_notalways,vbar";
529 v = get_int(sbalways_v);
531 set_int(sbalways_v, 0);
532 v = get_int(sbvis_v);
534 emit("do-hide-vbar", "");
538 set_int(sbnever_v, 0);
541 program { name: "vbar_hide_always";
542 signal: "elm,action,hide_always,vbar";
546 v1 = get_int(sbnever_v);
548 set_int(sbnever_v, 1);
549 set_int(sbalways_v, 0);
550 v2 = get_int(sbvis_v);
552 emit("do-hide-vbar", "");
558 program { name: "sb_vbar_show";
559 signal: "do-show-vbar";
561 action: STATE_SET "default" 0.0;
562 transition: LINEAR 1.0;
563 target: "sb_vbar_clip";
565 program { name: "sb_vbar_hide";
566 signal: "do-hide-vbar";
568 action: STATE_SET "hidden" 0.0;
569 transition: LINEAR 1.0;
570 target: "sb_vbar_clip";
572 program { name: "hbar_show";
573 signal: "elm,action,show,hbar";
575 action: STATE_SET "default" 0.0;
576 target: "sb_hbar_clip_master";
578 program { name: "hbar_hide";
579 signal: "elm,action,hide,hbar";
581 action: STATE_SET "hidden" 0.0;
582 target: "sb_hbar_clip_master";
584 program { name: "hbar_show_always";
585 signal: "elm,action,show_always,hbar";
589 v = get_int(sbvis_h);
590 v |= get_int(sbalways_h);
592 set_int(sbalways_h, 1);
593 emit("do-show-hbar", "");
598 program { name: "hbar_show_notalways";
599 signal: "elm,action,show_notalways,hbar";
603 v = get_int(sbalways_h);
605 set_int(sbalways_h, 0);
606 v = get_int(sbvis_h);
608 emit("do-hide-hbar", "");
614 program { name: "sb_hbar_show";
615 signal: "do-show-hbar";
617 action: STATE_SET "default" 0.0;
618 transition: LINEAR 1.0;
619 target: "sb_hbar_clip";
621 program { name: "sb_hbar_hide";
622 signal: "do-hide-hbar";
624 action: STATE_SET "hidden" 0.0;
625 transition: LINEAR 1.0;
626 target: "sb_hbar_clip";
628 program { name: "scroll";
629 signal: "elm,action,scroll";
631 action: STATE_SET "default" 0.0;
634 v = get_int(sbvis_v);
635 v |= get_int(sbalways_v);
636 v1 = get_int(sbnever_v);
638 emit("do-show-vbar", "");
641 v = get_int(sbvis_h);
642 v |= get_int(sbalways_h);
644 emit("do-show-hbar", "");
647 v = get_int(sbvis_timer);
648 if (v > 0) cancel_timer(v);
649 v = timer(0.5, "timer0", 0);
650 set_int(sbvis_timer, v);