summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2018-12-20 11:32:28 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-12-20 11:32:28 +0900
commitd9a222ecf59622ec9cf80a908b0a987d18f87b0f (patch)
tree0308b4cb7934e65a51c9cdda7b436ade745b527c /data
parent2e2c2250937a7ea333f5ef927655dce0ba1478ff (diff)
Intruduce Efl.Ui.Panel (Create Efl Ui Widget from elm widget(elm_panel))
Summary: Create Efl Ui Widget from elm widget(elm_panel) Test Plan: elementary_test -> efl_ui_panel Reviewers: woohyun, Jaehyun_Cho, segfaultxavi Reviewed By: Jaehyun_Cho, segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7238
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/Makefile.am1
-rw-r--r--data/elementary/themes/default.edc1
-rw-r--r--data/elementary/themes/edc/efl/panel.edc831
3 files changed, 833 insertions, 0 deletions
diff --git a/data/elementary/themes/Makefile.am b/data/elementary/themes/Makefile.am
index 2e17663..7116e63 100644
--- a/data/elementary/themes/Makefile.am
+++ b/data/elementary/themes/Makefile.am
@@ -1026,6 +1026,7 @@ elementary/themes/edc/efl/grid.edc \
1026elementary/themes/edc/efl/navigation_bar.edc \ 1026elementary/themes/edc/efl/navigation_bar.edc \
1027elementary/themes/edc/efl/navigation_layout.edc \ 1027elementary/themes/edc/efl/navigation_layout.edc \
1028elementary/themes/edc/efl/tags.edc \ 1028elementary/themes/edc/efl/tags.edc \
1029elementary/themes/edc/efl/panel.edc \
1029elementary/themes/edc/efl/nstate.edc \ 1030elementary/themes/edc/efl/nstate.edc \
1030elementary/themes/edc/efl/panes.edc \ 1031elementary/themes/edc/efl/panes.edc \
1031elementary/themes/edc/efl/photocam.edc \ 1032elementary/themes/edc/efl/photocam.edc \
diff --git a/data/elementary/themes/default.edc b/data/elementary/themes/default.edc
index d0e7126..95f879a 100644
--- a/data/elementary/themes/default.edc
+++ b/data/elementary/themes/default.edc
@@ -186,6 +186,7 @@ collections {
186#include "edc/efl/video.edc" 186#include "edc/efl/video.edc"
187#include "edc/efl/focus.edc" 187#include "edc/efl/focus.edc"
188#include "edc/efl/tags.edc" 188#include "edc/efl/tags.edc"
189#include "edc/efl/panel.edc"
189#include "edc/efl/tooltip.edc" 190#include "edc/efl/tooltip.edc"
190#include "edc/efl/photocam.edc" 191#include "edc/efl/photocam.edc"
191#include "edc/efl/progress.edc" 192#include "edc/efl/progress.edc"
diff --git a/data/elementary/themes/edc/efl/panel.edc b/data/elementary/themes/edc/efl/panel.edc
new file mode 100644
index 0000000..aee2e31
--- /dev/null
+++ b/data/elementary/themes/edc/efl/panel.edc
@@ -0,0 +1,831 @@
1group { name: "efl/panel";
2 data {
3 item: "handler_size" "30";
4 }
5 parts {
6 part { name: "efl.content";
7 type: SWALLOW;
8 description { state: "default" 0.0;
9 }
10 }
11 }
12}
13group { name: "efl/panel/scrollable/left";
14 parts {
15 part { name: "efl.panel_area";
16 type: SWALLOW;
17 description { state: "default" 0.0;
18 rel2.relative: 0.0 1.0;
19 align: 0.0 0.5;
20 fixed: 1 1;
21 visible: 0;
22 }
23 description { state: "visible" 0.0;
24 inherit: "default" 0.0;
25 visible: 1;
26 }
27 }
28 part { name: "efl.event_area";
29 type: SWALLOW;
30 description { state: "default" 0.0;
31 rel1 {
32 relative: 1.0 0.0;
33 to: "efl.panel_area";
34 }
35 rel2 {
36 relative: 1.0 1.0;
37 to: "efl.panel_area";
38 }
39 align: 0.0 0.5;
40 fixed: 1 1;
41 visible: 0;
42 }
43 description { state: "visible" 0.0;
44 inherit: "default" 0.0;
45 visible: 1;
46 }
47 }
48 part { name: "access.outline";
49 type: RECT;
50 repeat_events: 1;
51 description { state: "default" 0.0;
52 rel1.to: "efl.panel_area";
53 rel2.to: "efl.panel_area";
54 color: 0 0 0 0;
55 }
56 }
57 part { name: "bg";
58 type: RECT;
59 description { state: "default" 0.0;
60 rel1.to: "efl.panel_area";
61 rel2.to: "efl.panel_area";
62 color: 64 64 64 255;
63 visible: 0;
64 }
65 description { state: "visible" 0.0;
66 inherit: "default" 0.0;
67 visible: 1;
68 }
69 }
70 part { name: "efl.content";
71 type: SWALLOW;
72 description { state: "default" 0.0;
73 rel1.to: "efl.panel_area";
74 rel2.to: "efl.panel_area";
75 visible: 0;
76 }
77 description { state: "visible" 0.0;
78 inherit: "default" 0.0;
79 visible: 1;
80 }
81 }
82 }
83 programs {
84 program { name: "active";
85 signal: "efl,state,content,visible";
86 source: "efl";
87 action: STATE_SET "visible" 0.0;
88 target: "efl.panel_area";
89 target: "efl.event_area";
90 target: "bg";
91 target: "efl.content";
92 }
93 program { name: "inactive";
94 signal: "efl,state,content,hidden";
95 source: "efl";
96 action: STATE_SET "default" 0.0;
97 target: "efl.panel_area";
98 target: "efl.event_area";
99 target: "bg";
100 target: "efl.content";
101 }
102 }
103}
104
105group { name: "efl/panel/scrollable/right";
106 parts {
107 part { name: "efl.event_area";
108 type: SWALLOW;
109 description { state: "default" 0.0;
110 rel2.relative: 0.0 1.0;
111 align: 0.0 0.5;
112 fixed: 1 1;
113 visible: 0;
114 }
115 description { state: "visible" 0.0;
116 inherit: "default" 0.0;
117 visible: 1;
118 }
119 }
120 part { name: "efl.panel_area";
121 type: SWALLOW;
122 description { state: "default" 0.0;
123 rel1 {
124 relative: 1.0 0.0;
125 to: "efl.event_area";
126 }
127 rel2 {
128 relative: 1.0 1.0;
129 to: "efl.event_area";
130 }
131 align: 0.0 0.5;
132 fixed: 1 1;
133 visible: 0;
134 }
135 description { state: "visible" 0.0;
136 inherit: "default" 0.0;
137 visible: 1;
138 }
139 }
140 part { name: "access.outline";
141 type: RECT;
142 repeat_events: 1;
143 description { state: "default" 0.0;
144 rel1.to: "efl.panel_area";
145 rel2.to: "efl.panel_area";
146 color: 0 0 0 0;
147 }
148 }
149 part { name: "bg";
150 type: RECT;
151 description { state: "default" 0.0;
152 rel1.to: "efl.panel_area";
153 rel2.to: "efl.panel_area";
154 color: 64 64 64 255;
155 visible: 0;
156 }
157 description { state: "visible" 0.0;
158 inherit: "default" 0.0;
159 visible: 1;
160 }
161 }
162 part { name: "efl.content";
163 type: SWALLOW;
164 description { state: "default" 0.0;
165 rel1.to: "efl.panel_area";
166 rel2.to: "efl.panel_area";
167 visible: 0;
168 }
169 description { state: "visible" 0.0;
170 inherit: "default" 0.0;
171 visible: 1;
172 }
173 }
174 }
175 programs {
176 program { name: "active";
177 signal: "efl,state,content,visible";
178 source: "efl";
179 action: STATE_SET "visible" 0.0;
180 target: "efl.panel_area";
181 target: "efl.event_area";
182 target: "bg";
183 target: "efl.content";
184 }
185 program { name: "inactive";
186 signal: "efl,state,content,hidden";
187 source: "efl";
188 action: STATE_SET "default" 0.0;
189 target: "efl.panel_area";
190 target: "efl.event_area";
191 target: "bg";
192 target: "efl.content";
193 }
194 }
195}
196
197group { name: "efl/panel/scrollable/top";
198 parts {
199 part { name: "efl.panel_area";
200 type: SWALLOW;
201 description { state: "default" 0.0;
202 rel2.relative: 1.0 0.0;
203 align: 0.5 0.0;
204 fixed: 1 1;
205 visible: 0;
206 }
207 description { state: "visible" 0.0;
208 inherit: "default" 0.0;
209 visible: 1;
210 }
211 }
212 part { name: "efl.event_area";
213 type: SWALLOW;
214 description { state: "default" 0.0;
215 rel1 {
216 relative: 0.0 1.0;
217 to: "efl.panel_area";
218 }
219 rel2 {
220 relative: 1.0 1.0;
221 to: "efl.panel_area";
222 }
223 align: 0.5 0.0;
224 fixed: 1 1;
225 visible: 0;
226 }
227 description { state: "visible" 0.0;
228 inherit: "default" 0.0;
229 visible: 1;
230 }
231 }
232 part { name: "access.outline";
233 type: RECT;
234 repeat_events: 1;
235 description { state: "default" 0.0;
236 rel1.to: "efl.panel_area";
237 rel2.to: "efl.panel_area";
238 color: 0 0 0 0;
239 }
240 }
241 part { name: "bg";
242 type: RECT;
243 description { state: "default" 0.0;
244 rel1.to: "efl.panel_area";
245 rel2.to: "efl.panel_area";
246 color: 64 64 64 255;
247 visible: 0;
248 }
249 description { state: "visible" 0.0;
250 inherit: "default" 0.0;
251 visible: 1;
252 }
253 }
254 part { name: "efl.content";
255 type: SWALLOW;
256 description { state: "default" 0.0;
257 rel1.to: "efl.panel_area";
258 rel2.to: "efl.panel_area";
259 visible: 0;
260 }
261 description { state: "visible" 0.0;
262 inherit: "default" 0.0;
263 visible: 1;
264 }
265 }
266 }
267 programs {
268 program { name: "active";
269 signal: "efl,state,content,visible";
270 source: "efl";
271 action: STATE_SET "visible" 0.0;
272 target: "efl.panel_area";
273 target: "efl.event_area";
274 target: "bg";
275 target: "efl.content";
276 }
277 program { name: "inactive";
278 signal: "efl,state,content,hidden";
279 source: "efl";
280 action: STATE_SET "default" 0.0;
281 target: "efl.panel_area";
282 target: "efl.event_area";
283 target: "bg";
284 target: "efl.content";
285 }
286 }
287}
288
289group { name: "efl/panel/scrollable/bottom";
290 parts {
291 part { name: "efl.event_area";
292 type: SWALLOW;
293 description { state: "default" 0.0;
294 rel2.relative: 1.0 0.0;
295 align: 0.5 0.0;
296 fixed: 1 1;
297 visible: 0;
298 }
299 description { state: "visible" 0.0;
300 inherit: "default" 0.0;
301 visible: 1;
302 }
303 }
304 part { name: "efl.panel_area";
305 type: SWALLOW;
306 description { state: "default" 0.0;
307 rel1 {
308 relative: 0.0 1.0;
309 to: "efl.event_area";
310 }
311 rel2 {
312 relative: 1.0 1.0;
313 to: "efl.event_area";
314 }
315 align: 0.5 0.0;
316 fixed: 1 1;
317 visible: 0;
318 }
319 description { state: "visible" 0.0;
320 inherit: "default" 0.0;
321 visible: 1;
322 }
323 }
324 part { name: "access.outline";
325 type: RECT;
326 repeat_events: 1;
327 description { state: "default" 0.0;
328 rel1.to: "efl.panel_area";
329 rel2.to: "efl.panel_area";
330 color: 0 0 0 0;
331 }
332 }
333 part { name: "bg";
334 type: RECT;
335 description { state: "default" 0.0;
336 rel1.to: "efl.panel_area";
337 rel2.to: "efl.panel_area";
338 color: 64 64 64 255;
339 visible: 0;
340 }
341 description { state: "visible" 0.0;
342 inherit: "default" 0.0;
343 visible: 1;
344 }
345 }
346 part { name: "efl.content";
347 type: SWALLOW;
348 description { state: "default" 0.0;
349 rel1.to: "efl.panel_area";
350 rel2.to: "efl.panel_area";
351 visible: 0;
352 }
353 description { state: "visible" 0.0;
354 inherit: "default" 0.0;
355 visible: 1;
356 }
357 }
358 }
359 programs {
360 program { name: "active";
361 signal: "efl,state,content,visible";
362 source: "efl";
363 action: STATE_SET "visible" 0.0;
364 target: "efl.panel_area";
365 target: "efl.event_area";
366 target: "bg";
367 target: "efl.content";
368 }
369 program { name: "inactive";
370 signal: "efl,state,content,hidden";
371 source: "efl";
372 action: STATE_SET "default" 0.0;
373 target: "efl.panel_area";
374 target: "efl.event_area";
375 target: "bg";
376 target: "efl.content";
377 }
378 }
379}
380
381group { name: "efl/panel/left";
382 images.image: "bevel_out.png" COMP;
383 images.image: "shine.png" COMP;
384 images.image: "shadow_square_tiny.png" COMP;
385 images.image: "holes_tiny_glow_vert.png" COMP;
386 images.image: "holes_tiny_glow_horiz.png" COMP;
387 images.image: "win_glow.png" COMP;
388 images.image: "icon_arrow_right.png" COMP;
389 images.image: "icon_arrow_left.png" COMP;
390 images.image: "icon_arrow_up.png" COMP;
391 images.image: "icon_arrow_down.png" COMP;
392 data.item: "focus_highlight" "on";
393 script {
394 public is_rtl = 0;
395 }
396 parts {
397 part { name: "shadow"; mouse_events: 0;
398 description { state: "default" 0.0;
399 rel1.offset: -3 -2;
400 rel1.to: "base";
401 rel2.offset: 2 4;
402 rel2.to: "base";
403 image.normal: "shadow_square_tiny.png";
404 image.border: 6 6 6 6;
405 fill.smooth: 0;
406 }
407 }
408 part { name: "glow"; mouse_events: 0;
409 description { state: "default" 0.0;
410 image.normal: "win_glow.png";
411 image.border: 9 9 9 9;
412 image.middle: 0;
413 rel1.offset: -5 -5;
414 rel1.to: "base";
415 rel2.offset: 4 4;
416 rel2.to: "base";
417 fill.smooth: 0;
418 color: 255 255 255 0;
419 visible: 0;
420 }
421 description { state: "focused" 0.0;
422 inherit: "default" 0.0;
423 color: 255 255 255 255;
424 visible: 1;
425 }
426 }
427 part { name: "all"; type: SPACER;
428 description { state: "default" 0.0;
429 }
430 }
431 part { name: "base"; type: RECT;
432 description { state: "default" 0.0;
433 rel1.to_x: "all";
434 rel2.to_x: "efl.swallow.event";
435 rel2.relative: 0.0 1.0;
436 rel2.offset: -4 -1;
437 color: 64 64 64 255;
438 }
439 }
440 part { name: "efl.content"; type: SWALLOW;
441 description { state: "default" 0.0;
442 rel1.offset: 4 4;
443 rel1.to: "base";
444 rel2.offset: -5 -5;
445 rel2.to: "base";
446 }
447 }
448 part { name: "bevel"; mouse_events: 0;
449 description { state: "default" 0.0;
450 rel1.to: "base";
451 rel2.to: "base";
452 image.normal: "bevel_out.png";
453 image.border: 1 1 1 1;
454 image.middle: 0;
455 fill.smooth: 0;
456 }
457 }
458 part { name: "shine"; mouse_events: 0;
459 description { state: "default" 0.0;
460 image.normal: "shine.png";
461 rel1.offset: 0 -2;
462 rel1.to: "base";
463 rel2.relative: 1.0 0.0;
464 rel2.offset: -1 2;
465 rel2.to: "base";
466 FIXED_SIZE(69, 5)
467 }
468 }
469 part { name: "efl.swallow.event"; type: SWALLOW;
470 description { state: "default" 0.0;
471 fixed: 1 1;
472 min: 20 20;
473 max: 20 20;
474 align: 1.0 0.5;
475 rel1.relative: 1.0 0.0;
476 rel2.relative: 1.0 1.0;
477 color: 0 0 0 0;
478 }
479 description { state: "hidden" 0.0;
480 inherit: "default" 0.0;
481 align: 0.0 0.5;
482 rel1.relative: 0.0 0.0;
483 rel2.relative: 0.0 1.0;
484 }
485 }
486 part { name: "btn"; type: RECT;
487 description { state: "default" 0.0;
488 rel1.to: "efl.swallow.event";
489 rel2.to: "efl.swallow.event";
490 color: 0 0 0 0;
491 }
492 description { state: "hidden" 0.0;
493 rel1.to: "efl.swallow.event";
494 rel2.to: "efl.swallow.event";
495 }
496 }
497 part { name: "dots"; mouse_events: 0;
498 description { state: "default" 0.0;
499 rel1.to: "icn";
500 rel2.to: "icn";
501 align: 0.0 0.5;
502 image.normal: "holes_tiny_glow_vert.png";
503 FIXED_SIZE(11, 17)
504 }
505 }
506 part { name: "icn"; mouse_events: 0;
507 scale: 1;
508 description { state: "default" 0.0;
509 fixed: 1 1;
510 min: 20 20;
511 max: 20 20;
512 rel1.to: "btn";
513 rel2.to: "btn";
514 image.normal: "icon_arrow_left.png";
515 }
516 description { state: "hidden" 0.0;
517 inherit: "default" 0.0;
518 image.normal: "icon_arrow_right.png";
519 }
520 }
521 }
522 programs {
523 program {
524 signal: "mouse,clicked,1"; source: "btn";
525 action: SIGNAL_EMIT "efl,action,panel,toggle" "efl";
526 }
527 program {
528 signal: "efl,action,show"; source: "efl";
529 action: STATE_SET "default" 0.0;
530 transition: DECELERATE 0.3;
531 target: "efl.swallow.event";
532 target: "base";
533 }
534 program {
535 signal: "efl,action,show"; source: "efl";
536 script {
537 if (get_int(is_rtl) == 0)
538 set_state(PART:"icn", "default", 0.0);
539 else
540 set_state(PART:"icn", "hidden", 0.0);
541 }
542 }
543 program {
544 signal: "edje,state,rtl";
545 source: "edje";
546 script {
547 new st[31];
548 new Float:vl;
549 get_state(PART:"efl.swallow.event", st, 30, vl);
550 if (!strcmp(st, "default"))
551 set_state(PART:"icn", "hidden", 0.0);
552 else
553 set_state(PART:"icn", "default", 0.0);
554 set_int(is_rtl, 1);
555 }
556 }
557 program {
558 signal: "edje,state,ltr";
559 source: "edje";
560 script {
561 new st[31];
562 new Float:vl;
563 get_state(PART:"efl.swallow.event", st, 30, vl);
564 if (!strcmp(st, "default"))
565 set_state(PART:"icn", "default", 0.0);
566 else
567 set_state(PART:"icn", "hidden", 0.0);
568 set_int(is_rtl, 0);
569 }
570 }
571 program {
572 signal: "efl,action,hide"; source: "efl";
573 action: STATE_SET "hidden" 0.0;
574 transition: ACCELERATE 0.3;
575 target: "efl.swallow.event";
576 }
577 program {
578 signal: "efl,action,hide"; source: "efl";
579 script {
580 if (get_int(is_rtl) == 0)
581 set_state(PART:"icn", "hidden", 0.0);
582 else
583 set_state(PART:"icn", "default", 0.0);
584 }
585 }
586 program { name: "hide1";
587 signal: "efl,action,hide"; source: "efl";
588 script {
589 new x, y, w, h;
590 if (get_int(is_rtl) == 0)
591 {
592 custom_state(PART:"base", "default", 0.0);
593 set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
594 get_geometry(PART:"efl.swallow.event", x, y, w, h);
595 set_state_val(PART:"base", STATE_REL1_OFFSET, w, 0);
596 }
597 else
598 {
599 custom_state(PART:"base", "default", 0.0);
600 set_state_val(PART:"base", STATE_REL1, -1.0, 0.0);
601 set_state_val(PART:"base", STATE_REL2, -2.0, 1.0);
602 get_geometry(PART:"efl.swallow.event", x, y, w, h);
603 set_state_val(PART:"base", STATE_REL2_OFFSET, -w, 0);
604 }
605 }
606 after: "hide2";
607 }
608 program { name: "hide2";
609 action: STATE_SET "custom" 0.0;
610 transition: ACCELERATE 0.3;
611 target: "base";
612 }
613 program {
614 signal: "efl,action,focus_highlight,show"; source: "efl";
615 action: STATE_SET "focused" 0.0;
616 transition: ACCELERATE 0.2;
617 target: "glow";
618 }
619 program {
620 signal: "efl,action,focus_highlight,hide"; source: "efl";
621 action: STATE_SET "default" 0.0;
622 transition: DECELERATE 0.5;
623 target: "glow";
624 }
625 }
626}
627
628group { name: "efl/panel/right";
629 inherit: "efl/panel/left";
630 parts {
631 part { name: "base";
632 description { state: "default" 0.0;
633 rel1.relative: 1.0 0.0;
634 rel1.to_x: "efl.swallow.event";
635 rel1.offset: 3 0;
636 rel2.relative: 1.0 1.0;
637 rel2.to_x: "all";
638 rel2.offset: -1 -1;
639 }
640 }
641 part { name: "efl.swallow.event";
642 description { state: "default" 0.0;
643 align: 0.0 0.5;
644 rel1.relative: 0.0 0.0;
645 rel2.relative: 0.0 1.0;
646 }
647 description { state: "hidden" 0.0;
648 align: 1.0 0.5;
649 rel1.relative: 1.0 0.0;
650 rel2.relative: 1.0 1.0;
651 }
652 }
653 part { name: "dots";
654 description { state: "default" 0.0;
655 align: 1.0 0.5;
656 }
657 }
658 part { name: "icn";
659 description { state: "default" 0.0;
660 image.normal: "icon_arrow_right.png";
661 }
662 description { state: "hidden" 0.0;
663 image.normal: "icon_arrow_left.png";
664 }
665 }
666 }
667 programs {
668 program { name: "hide1";
669 script {
670 new x, y, w, h;
671
672 custom_state(PART:"base", "default", 0.0);
673 set_state_val(PART:"base", STATE_REL1, 1.0, 0.0);
674 set_state_val(PART:"base", STATE_REL2, 2.0, 1.0);
675 get_geometry(PART:"efl.swallow.event", x, y, w, h);
676 set_state_val(PART:"base", STATE_REL2_OFFSET, -w, 0);
677 }
678 }
679 }
680}
681
682group { name: "efl/panel/top";
683 inherit: "efl/panel/left";
684 parts {
685 part { name: "base";
686 description { state: "default" 0.0;
687 rel1.relative: 0.0 0.0;
688 rel1.to_x: "all";
689 rel1.to_y: "all";
690 rel1.offset: 0 0;
691 rel2.relative: 1.0 0.0;
692 rel2.to_x: "all";
693 rel2.to_y: "efl.swallow.event";
694 rel2.offset: -1 -4;
695 }
696 }
697 part { name: "efl.swallow.event";
698 description { state: "default" 0.0;
699 align: 0.5 1.0;
700 rel1.relative: 0.0 1.0;
701 rel2.relative: 1.0 1.0;
702 }
703 description { state: "hidden" 0.0;
704 align: 0.5 0.0;
705 rel1.relative: 0.0 0.0;
706 rel2.relative: 1.0 0.0;
707 }
708 }
709 part { name: "dots";
710 description { state: "default" 0.0;
711 align: 0.5 0.0;
712 image.normal: "holes_tiny_glow_horiz.png";
713 FIXED_SIZE(17, 11)
714 }
715 }
716 part { name: "icn";
717 description { state: "default" 0.0;
718 image.normal: "icon_arrow_up.png";
719 }
720 description { state: "hidden" 0.0;
721 image.normal: "icon_arrow_down.png";
722 }
723 }
724 }
725 programs {
726 program { name: "hide1";
727 script {
728 new x, y, w, h;
729
730 custom_state(PART:"base", "default", 0.0);
731 set_state_val(PART:"base", STATE_REL1, 0.0, -1.0);
732 set_state_val(PART:"base", STATE_REL2, 1.0, 0.0);
733 get_geometry(PART:"efl.swallow.event", x, y, w, h);
734 set_state_val(PART:"base", STATE_REL1_OFFSET, 0, h);
735 }
736 }
737 program {
738 signal: "efl,action,show"; source: "efl";
739 action: STATE_SET "default" 0.0;
740 target: "icn";
741 }
742 program {
743 signal: "edje,state,rtl";
744 source: "edje";
745 script {
746 new st[31];
747 new Float:vl;
748 get_state(PART:"efl.swallow.event", st, 30, vl);
749 if (!strcmp(st, "default"))
750 set_state(PART:"icn", "default", 0.0);
751 else
752 set_state(PART:"icn", "hidden", 0.0);
753 }
754 }
755 program {
756 signal: "edje,state,ltr";
757 source: "edje";
758 script {
759 new st[31];
760 new Float:vl;
761 get_state(PART:"efl.swallow.event", st, 30, vl);
762 if (!strcmp(st, "default"))
763 set_state(PART:"icn", "default", 0.0);
764 else
765 set_state(PART:"icn", "hidden", 0.0);
766 }
767 }
768 program {
769 signal: "efl,action,hide"; source: "efl";
770 action: STATE_SET "hidden" 0.0;
771 target: "icn";
772 }
773 }
774}
775
776group { name: "efl/panel/bottom";
777 inherit: "efl/panel/top";
778 parts {
779 part { name: "base";
780 description { state: "default" 0.0;
781 rel1.relative: 0.0 1.0;
782 rel1.to_x: "all";
783 rel1.to_y: "efl.swallow.event";
784 rel1.offset: 0 3;
785 rel2.relative: 1.0 1.0;
786 rel2.to_x: "all";
787 rel2.to_y: "all";
788 rel2.offset: -1 -1;
789 }
790 }
791 part { name: "efl.swallow.event";
792 description { state: "default" 0.0;
793 align: 0.5 0.0;
794 rel1.relative: 0.0 0.0;
795 rel2.relative: 1.0 0.0;
796 }
797 description { state: "hidden" 0.0;
798 align: 0.5 1.0;
799 rel1.relative: 0.0 1.0;
800 rel2.relative: 1.0 1.0;
801 }
802 }
803 part { name: "dots";
804 description { state: "default" 0.0;
805 align: 0.5 0.0;
806 image.normal: "holes_tiny_glow_horiz.png";
807 FIXED_SIZE(17, 11)
808 }
809 }
810 part { name: "icn";
811 description { state: "default" 0.0;
812 image.normal: "icon_arrow_down.png";
813 }
814 description { state: "hidden" 0.0;
815 image.normal: "icon_arrow_up.png";
816 }
817 }
818 }
819 programs {
820 program { name: "hide1";
821 script {
822 new x, y, w, h;
823 custom_state(PART:"base", "default", 0.0);
824 set_state_val(PART:"base", STATE_REL1, 0.0, 1.0);
825 set_state_val(PART:"base", STATE_REL2, 1.0, 2.0);
826 get_geometry(PART:"efl.swallow.event", x, y, w, h);
827 set_state_val(PART:"base", STATE_REL2_OFFSET, 0, -h);
828 }
829 }
830 }
831}