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_custom.edc"
32 #include "genlist_email.edc"
35 group { name: "elm/genlist/base/dialogue";
36 alias: "elm/scroller/base/dialogue";
37 inherit: "elm/genlist/base/default";
40 description { state: "default" 0.0;
41 color: GENLIST_LIST_BG_COLOR;
44 part { name: "elm.padding.left";
47 description { state: "default" 0.0;
48 min: DIALOGUE_PADDING_SCROLLER 0;
52 rel2.relative: 0.0 1.0;
53 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
56 part { name: "elm.padding.right";
59 description { state: "default" 0.0;
60 min: DIALOGUE_PADDING_SCROLLER 0;
64 rel1.relative: 1.0 0.0;
65 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR;
68 part { name: "elm.swallow.content";
72 description { state: "default" 0.0;
75 to_x: "elm.padding.left";
79 to_x: "elm.padding.right";
84 part { name: "sb_vbar";
88 description { state: "default" 0.0;
91 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
109 group { name: "elm/list/base/matchlist";
111 public sbvis_v, sbvis_h, sbnever_v, sbalways_v, sbalways_h, sbvis_timer;
114 v = get_int(sbvis_v);
116 v = get_int(sbalways_v);
118 emit("do-hide-vbar", "");
122 v = get_int(sbvis_h);
124 v = get_int(sbalways_h);
126 emit("do-hide-hbar", "");
130 set_int(sbvis_timer, 0);
135 image: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE COMP;
136 image: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE COMP;
137 image: "bt_sm_shine.png" COMP;
138 image: "bt_sm_hilight.png" COMP;
139 image: "sb_runnerh.png" COMP;
140 image: "sb_runnerv.png" COMP;
141 image: "01_dialoguegroup_bg_default.png" COMP;
147 description { state: "default" 0.0;
150 color: 255 255 255 0;
156 description { state: "default" 0.0;
162 normal: "01_dialoguegroup_bg_default.png";
163 border: SCROLLER_MATCHLIST_SCROLLBAR_BG_IMAGE_BORDER;
169 part { name: "clipper";
173 description { state: "default" 0.0;
178 part { name: "elm.swallow.content";
182 description { state: "default" 0.0;
187 part { name: "conf_over";
190 description { state: "default" 0.0;
196 part { name: "sb_vbar_clip_master";
200 description { state: "default" 0.0;
202 description { state: "hidden" 0.0;
204 color: 255 255 255 0;
207 part { name: "sb_vbar_clip";
208 clip_to: "sb_vbar_clip_master";
212 description { state: "default" 0.0;
214 description { state: "hidden" 0.0;
216 color: 255 255 255 0;
219 part {name: "vbar.padding";
222 description { state: "default" 0.0;
223 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
224 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_PADDING_SIZE 0;
228 to: "elm.swallow.content";
232 to: "elm.swallow.content";
236 part { name: "sb_vbar";
240 description { state: "default" 0.0;
243 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
248 to_y: "elm.swallow.content";
249 to_x: "elm.swallow.content";
254 to_y: "elm.swallow.content";
255 to_x: "vbar.padding";
259 part { name: "sb_vbar_runner";
260 clip_to: "sb_vbar_clip";
263 description { state: "default" 0.0;
264 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
265 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
270 normal: "sb_runnerv.png";
271 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_RUNNER_BORDER;
277 part { name: "elm.dragable.vbar";
278 clip_to: "sb_vbar_clip";
286 description { state: "default" 0.0;
288 min: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MIN_SIZE_INC;
289 max: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_MAX_SIZE_INC;
301 normal: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE;
302 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_IMAGE_BORDER;
308 part { name: "sb_vbar_over1";
309 clip_to: "sb_vbar_clip";
312 description { state: "default" 0.0;
313 rel1.to: "elm.dragable.vbar";
314 rel2.relative: 1.0 0.5;
315 rel2.to: "elm.dragable.vbar";
318 normal: "bt_sm_hilight.png";
319 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER1;
324 part { name: "sb_vbar_over2";
325 clip_to: "sb_vbar_clip";
328 description { state: "default" 0.0;
329 rel1.to: "elm.dragable.vbar";
330 rel2.to: "elm.dragable.vbar";
333 normal: "bt_sm_shine.png";
334 border: SCROLLER_MATCHLIST_SCROLLBAR_VBAR_OVER2;
339 part { name: "sb_hbar_clip_master";
342 description { state: "default" 0.0;
344 description { state: "hidden" 0.0;
346 color: 255 255 255 0;
349 part { name: "sb_hbar_clip";
350 clip_to: "sb_hbar_clip_master";
354 description { state: "default" 0.0;
356 description { state: "hidden" 0.0;
358 color: 255 255 255 0;
361 part {name: "hbar.padding";
364 description { state: "default" 0.0;
365 min: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
366 max: 0 SCROLLER_MATCHLIST_SCROLLBAR_HBAR_PADDING_SIZE;
370 to: "elm.swallow.content";
374 to: "elm.swallow.content";
378 part { name: "sb_hbar";
382 description { state: "default" 0.0;
385 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
390 to_y: "elm.swallow.content";
391 to_x: "elm.swallow.content";
397 to_y: "hbar.padding";
401 part { name: "sb_hbar_runner";
402 clip_to: "sb_hbar_clip";
405 description { state: "default" 0.0;
406 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
407 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
412 normal: "sb_runnerh.png";
413 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_RUNNER_BORDER;
419 part { name: "elm.dragable.hbar";
420 clip_to: "sb_hbar_clip";
428 description { state: "default" 0.0;
430 min: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MIN_SIZE_INC;
431 max: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_MAX_SIZE_INC;
442 color: 255 255 255 0;
444 normal: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE;
445 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_IMAGE_BORDER;
451 part { name: "sb_hbar_over1";
452 clip_to: "sb_hbar_clip";
455 description { state: "default" 0.0;
456 rel1.to: "elm.dragable.hbar";
457 rel2.relative: 1.0 0.5;
458 rel2.to: "elm.dragable.hbar";
461 normal: "bt_sm_hilight.png";
462 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER1;
467 part { name: "sb_hbar_over2";
468 clip_to: "sb_hbar_clip";
471 description { state: "default" 0.0;
472 rel1.to: "elm.dragable.hbar";
473 rel2.to: "elm.dragable.hbar";
476 normal: "bt_sm_shine.png";
477 border: SCROLLER_MATCHLIST_SCROLLBAR_HBAR_OVER2;
484 program { name: "load";
488 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
489 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
492 set_int(sbalways_v, 0);
493 set_int(sbalways_h, 0);
494 set_int(sbvis_timer, 0);
495 set_int(sbnever_v, 0);
498 program { name: "vbar_show";
499 signal: "elm,action,show,vbar";
501 action: STATE_SET "default" 0.0;
502 target: "sb_vbar_clip_master";
504 program { name: "vbar_hide";
505 signal: "elm,action,hide,vbar";
507 action: STATE_SET "hidden" 0.0;
508 target: "sb_vbar_clip_master";
510 program { name: "vbar_show_always";
511 signal: "elm,action,show_always,vbar";
515 v = get_int(sbvis_v);
516 v |= get_int(sbalways_v);
518 set_int(sbalways_v, 1);
519 emit("do-show-vbar", "");
522 set_int(sbnever_v, 0);
525 program { name: "vbar_show_notalways";
526 signal: "elm,action,show_notalways,vbar";
530 v = get_int(sbalways_v);
532 set_int(sbalways_v, 0);
533 v = get_int(sbvis_v);
535 emit("do-hide-vbar", "");
539 set_int(sbnever_v, 0);
542 program { name: "vbar_hide_always";
543 signal: "elm,action,hide_always,vbar";
547 v1 = get_int(sbnever_v);
549 set_int(sbnever_v, 1);
550 set_int(sbalways_v, 0);
551 v2 = get_int(sbvis_v);
553 emit("do-hide-vbar", "");
559 program { name: "sb_vbar_show";
560 signal: "do-show-vbar";
562 action: STATE_SET "default" 0.0;
563 transition: LINEAR 1.0;
564 target: "sb_vbar_clip";
566 program { name: "sb_vbar_hide";
567 signal: "do-hide-vbar";
569 action: STATE_SET "hidden" 0.0;
570 transition: LINEAR 1.0;
571 target: "sb_vbar_clip";
573 program { name: "hbar_show";
574 signal: "elm,action,show,hbar";
576 action: STATE_SET "default" 0.0;
577 target: "sb_hbar_clip_master";
579 program { name: "hbar_hide";
580 signal: "elm,action,hide,hbar";
582 action: STATE_SET "hidden" 0.0;
583 target: "sb_hbar_clip_master";
585 program { name: "hbar_show_always";
586 signal: "elm,action,show_always,hbar";
590 v = get_int(sbvis_h);
591 v |= get_int(sbalways_h);
593 set_int(sbalways_h, 1);
594 emit("do-show-hbar", "");
599 program { name: "hbar_show_notalways";
600 signal: "elm,action,show_notalways,hbar";
604 v = get_int(sbalways_h);
606 set_int(sbalways_h, 0);
607 v = get_int(sbvis_h);
609 emit("do-hide-hbar", "");
615 program { name: "sb_hbar_show";
616 signal: "do-show-hbar";
618 action: STATE_SET "default" 0.0;
619 transition: LINEAR 1.0;
620 target: "sb_hbar_clip";
622 program { name: "sb_hbar_hide";
623 signal: "do-hide-hbar";
625 action: STATE_SET "hidden" 0.0;
626 transition: LINEAR 1.0;
627 target: "sb_hbar_clip";
629 program { name: "scroll";
630 signal: "elm,action,scroll";
632 action: STATE_SET "default" 0.0;
635 v = get_int(sbvis_v);
636 v |= get_int(sbalways_v);
637 v1 = get_int(sbnever_v);
639 emit("do-show-vbar", "");
642 v = get_int(sbvis_h);
643 v |= get_int(sbalways_h);
645 emit("do-show-hbar", "");
648 v = get_int(sbvis_timer);
649 if (v > 0) cancel_timer(v);
650 v = timer(0.5, "timer0", 0);
651 set_int(sbvis_timer, v);