summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/elm/panes.edc
diff options
context:
space:
mode:
Diffstat (limited to 'data/elementary/themes/edc/elm/panes.edc')
-rw-r--r--data/elementary/themes/edc/elm/panes.edc997
1 files changed, 997 insertions, 0 deletions
diff --git a/data/elementary/themes/edc/elm/panes.edc b/data/elementary/themes/edc/elm/panes.edc
new file mode 100644
index 0000000..9009123
--- /dev/null
+++ b/data/elementary/themes/edc/elm/panes.edc
@@ -0,0 +1,997 @@
1/* panes widget style information
2
3 [SIGNAL]
4 elm,panes,fixed: Used for elm_panes_fixed_set()
5 elm,panes,unfixed: Used for elm_panes_fixed_set()
6
7 [SIGNAL EMIT]
8 elm,action,click: Used for "clicked" smart callback.
9 elm,action,click,double: Used for "clicked,double" smart callback.
10 elm,action,press: Used for "press" smart callback.
11 elm,action,unpress: Used for "unpress" smart callback.
12*/
13
14#define PANEMIN 10
15#define PANEMIN2 16
16#define PANEWID 32
17
18group { name: "elm/panes/vertical/default";
19 images.image: "holes_vert.png" COMP;
20 parts {
21 part { name: "whole"; type: SPACER;
22 description { state: "default" 0.0;
23 }
24 }
25 part { name: "right_constraint"; type: SPACER;
26 dragable { confine: "whole";
27 x: 1 1 1;
28 y: 0 0 0;
29 }
30 description { state: "default" 0.0;
31 max: 0 0;
32 }
33 }
34 part { name: "left_constraint"; type: SPACER;
35 dragable { confine: "whole";
36 x: 1 1 1;
37 y: 0 0 0;
38 }
39 description { state: "default" 0.0;
40 max: 0 0;
41 }
42 }
43 part { name: "sub_whole"; type: SPACER;
44 description { state: "default" 0.0;
45 rel1.relative: 1.0 0.0;
46 rel1.to_x: "left_constraint";
47 rel2.relative: 0.0 1.0;
48 rel2.to_x: "right_constraint";
49 }
50 }
51 part { name: "whole_left"; type: RECT;
52 description { state: "default" 0.0;
53 rel2.to_x: "elm.bar";
54 rel2.relative: 1.0 1.0;
55 rel2.offset: -4 -1;
56 }
57 }
58 part { name: "whole_right"; type: RECT;
59 description { state: "default" 0.0;
60 rel1.to_x: "elm.bar";
61 rel1.relative: 0.0 0.0;
62 rel1.offset: 3 0;
63 }
64 }
65 part { name: "elm.swallow.left"; type: SWALLOW;
66 clip_to: "whole_left";
67 description { state: "default" 0.0;
68 rel2.to_x: "elm.bar";
69 rel2.relative: 1.0 1.0;
70 rel2.offset: -4 -1;
71 }
72 }
73 part { name: "elm.swallow.right"; type: SWALLOW;
74 clip_to: "whole_right";
75 description { state: "default" 0.0;
76 rel1.to_x: "elm.bar";
77 rel1.relative: 0.0 0.0;
78 rel1.offset: 3 0;
79 }
80 }
81 part { name: "elm.bar"; type: SPACER;
82 dragable { confine: "sub_whole";
83 x: 1 1 1;
84 y: 0 0 0;
85 }
86 description { state: "default" 0.0;
87 max: 0 99999;
88 min: 0 14;
89 fixed: 1 1;
90 rel1.relative: 0.0 0.5;
91 rel2.relative: 1.0 0.5;
92 }
93 }
94 part { name: "dots"; mouse_events: 0;
95 description { state: "default" 0.0;
96 image.normal: "holes_vert.png";
97 rel1.to: "elm.bar";
98 rel2.to: "elm.bar";
99 FIXED_SIZE(4, 14)
100 }
101 }
102 part { name: "elm.swallow.event"; type: SWALLOW;
103 description { state: "default" 0.0;
104 visible: 0;
105 min: PANEMIN PANEMIN2;
106 fixed: 1 1;
107 rel1.to: "elm.bar";
108 rel2.to: "elm.bar";
109 }
110 }
111 part { name: "bar"; type: RECT;
112 dragable.events: "elm.bar";
113 description { state: "default" 0.0;
114 min: PANEMIN PANEWID;
115 max: 99999 99999;
116 fixed: 1 1;
117 rel1.to_x: "elm.swallow.event";
118 rel2.to_x: "elm.swallow.event";
119 color: 0 0 0 0;
120 }
121 description { state: "disabled" 0.0;
122 inherit: "default" 0.0;
123 visible: 0;
124 }
125 }
126 }
127 programs {
128 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
129 action: SIGNAL_EMIT "elm,action,press" "elm";
130 }
131 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
132 action: SIGNAL_EMIT "elm,action,unpress" "elm";
133 }
134 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
135 action: SIGNAL_EMIT "elm,action,click" "elm";
136 }
137 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
138 action: SIGNAL_EMIT "elm,action,click,double" "elm";
139 }
140 program { // for elm_panes_fixed_set()
141 signal: "elm,panes,fixed"; source: "elm";
142 action: STATE_SET "disabled" 0.0;
143 target: "bar";
144 }
145 program { // for elm_panes_fixed_set()
146 signal: "elm,panes,unfixed"; source: "elm";
147 action: STATE_SET "default" 0.0;
148 target: "bar";
149 }
150 }
151}
152
153group { name: "elm/panes/horizontal/default";
154 images.image: "holes_horiz.png" COMP;
155 parts {
156 part { name: "whole"; type: SPACER;
157 description { state: "default" 0.0;
158 }
159 }
160 part { name: "right_constraint"; type: SPACER;
161 dragable { confine: "whole";
162 x: 0 0 0;
163 y: 1 1 1;
164 }
165 description { state: "default" 0.0;
166 max: 0 0;
167 }
168 }
169 part { name: "left_constraint"; type: SPACER;
170 dragable { confine: "whole";
171 x: 0 0 0;
172 y: 1 1 1;
173 }
174 description { state: "default" 0.0;
175 max: 0 0;
176 }
177 }
178 part { name: "sub_whole"; type: SPACER;
179 description { state: "default" 0.0;
180 rel1.relative: 0.0 1.0;
181 rel1.to_y: "left_constraint";
182 rel2.relative: 1.0 0.0;
183 rel2.to_y: "right_constraint";
184 }
185 }
186 part { name: "whole_left"; type: RECT;
187 description { state: "default" 0.0;
188 rel2.to_y: "elm.bar";
189 rel2.relative: 1.0 1.0;
190 rel2.offset: -1 -4;
191 }
192 }
193 part { name: "whole_right"; type: RECT;
194 description { state: "default" 0.0;
195 rel1.to_y: "elm.bar";
196 rel1.relative: 0.0 0.0;
197 rel1.offset: 0 3;
198 }
199 }
200 part { name: "elm.swallow.left"; type: SWALLOW;
201 clip_to: "whole_left";
202 description { state: "default" 0.0;
203 rel2.to_y: "elm.bar";
204 rel2.relative: 1.0 1.0;
205 rel2.offset: -1 -4;
206 }
207 }
208 part { name: "elm.swallow.right"; type: SWALLOW;
209 clip_to: "whole_right";
210 description { state: "default" 0.0;
211 rel1.to_y: "elm.bar";
212 rel1.relative: 0.0 0.0;
213 rel1.offset: 0 3;
214 }
215 }
216 part { name: "elm.bar"; type: SPACER;
217 dragable { confine: "sub_whole";
218 x: 0 0 0;
219 y: 1 1 1;
220 }
221 description { state: "default" 0.0;
222 max: 99999 0;
223 min: 14 0;
224 fixed: 1 1;
225 rel1.relative: 0.5 0.0;
226 rel2.relative: 0.5 1.0;
227 }
228 }
229 part { name: "dots"; mouse_events: 0;
230 description { state: "default" 0.0;
231 image.normal: "holes_horiz.png";
232 rel1.to: "elm.bar";
233 rel2.to: "elm.bar";
234 FIXED_SIZE(14, 4)
235 }
236 }
237 part { name: "elm.swallow.event"; type: SWALLOW;
238 description { state: "default" 0.0;
239 visible: 0;
240 min: PANEMIN2 PANEMIN;
241 fixed: 1 1;
242 rel1.to: "elm.bar";
243 rel2.to: "elm.bar";
244 }
245 }
246 part { name: "bar"; type: RECT;
247 dragable.events: "elm.bar";
248 description { state: "default" 0.0;
249 min: PANEWID PANEMIN;
250 max: 99999 99999;
251 fixed: 1 1;
252 rel1.to_y: "elm.swallow.event";
253 rel2.to_y: "elm.swallow.event";
254 color: 0 0 0 0;
255 }
256 description { state: "disabled" 0.0;
257 inherit: "default" 0.0;
258 visible: 0;
259 }
260 }
261 }
262 programs {
263 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
264 action: SIGNAL_EMIT "elm,action,press" "elm";
265 }
266 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
267 action: SIGNAL_EMIT "elm,action,unpress" "elm";
268 }
269 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
270 action: SIGNAL_EMIT "elm,action,click" "elm";
271 }
272 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
273 action: SIGNAL_EMIT "elm,action,click,double" "elm";
274 }
275 program { // for elm_panes_fixed_set()
276 signal: "elm,panes,fixed"; source: "elm";
277 action: STATE_SET "disabled" 0.0;
278 target: "bar";
279 }
280 program { // for elm_panes_fixed_set()
281 signal: "elm,panes,unfixed"; source: "elm";
282 action: STATE_SET "default" 0.0;
283 target: "bar";
284 }
285 }
286}
287
288////////////////////////////////////////////////////////////////////////////
289
290
291group { name: "elm/panes/vertical/flush";
292 images.image: "downlight_glow_left.png" COMP;
293 images.image: "downlight_glow_right.png" COMP;
294 parts {
295 part { name: "whole"; type: SPACER;
296 description { state: "default" 0.0;
297 }
298 }
299 part { name: "right_constraint"; type: SPACER;
300 dragable { confine: "whole";
301 x: 1 1 1;
302 y: 0 0 0;
303 }
304 description { state: "default" 0.0;
305 max: 0 0;
306 }
307 }
308 part { name: "left_constraint"; type: SPACER;
309 dragable { confine: "whole";
310 x: 1 1 1;
311 y: 0 0 0;
312 }
313 description { state: "default" 0.0;
314 max: 0 0;
315 }
316 }
317 part { name: "sub_whole"; type: SPACER;
318 description { state: "default" 0.0;
319 rel1.relative: 1.0 0.0;
320 rel1.to_x: "left_constraint";
321 rel2.relative: 0.0 1.0;
322 rel2.to_x: "right_constraint";
323 }
324 }
325 part { name: "whole_left"; type: RECT;
326 description { state: "default" 0.0;
327 rel2.to_x: "elm.bar";
328 rel2.relative: 1.0 1.0;
329 }
330 }
331 part { name: "whole_right"; type: RECT;
332 description { state: "default" 0.0;
333 rel1.to_x: "elm.bar";
334 rel1.relative: 0.0 0.0;
335 }
336 }
337 part { name: "elm.swallow.left"; type: SWALLOW;
338 clip_to: "whole_left";
339 description { state: "default" 0.0;
340 rel2.to_x: "elm.bar";
341 rel2.relative: 1.0 1.0;
342 fixed: 1 0;
343 }
344 }
345 part { name: "elm.swallow.right"; type: SWALLOW;
346 clip_to: "whole_right";
347 description { state: "default" 0.0;
348 rel1.to_x: "elm.bar";
349 rel1.relative: 0.0 0.0;
350 fixed: 1 0;
351 }
352 }
353 part { name: "elm.bar"; type: SPACER;
354 dragable { confine: "sub_whole";
355 x: 1 1 1;
356 y: 0 0 0;
357 }
358 description { state: "default" 0.0;
359 max: 0 99999;
360 min: 0 14;
361 fixed: 1 1;
362 rel1.relative: 0.0 0.5;
363 rel2.relative: 1.0 0.5;
364 }
365 }
366 part { name: "elm.swallow.event"; type: SWALLOW;
367 description { state: "default" 0.0;
368 visible: 0;
369 min: PANEMIN PANEMIN2;
370 fixed: 1 1;
371 rel1.to: "elm.bar";
372 rel2.to: "elm.bar";
373 }
374 }
375 part { name: "bar"; type: RECT;
376 dragable.events: "elm.bar";
377 description { state: "default" 0.0;
378 min: PANEMIN PANEWID;
379 max: 99999 99999;
380 fixed: 1 1;
381 rel1.to_x: "elm.swallow.event";
382 rel1.relative: 0.0 0.25;
383 rel2.to_x: "elm.swallow.event";
384 rel2.relative: 1.0 0.75;
385 color: 0 0 0 0;
386 }
387 description { state: "disabled" 0.0;
388 inherit: "default" 0.0;
389 visible: 0;
390 }
391 }
392 part { name: "glow1a"; mouse_events: 0;
393 description { state: "default" 0.0;
394 image.normal: "downlight_glow_left.png";
395 image.border: 0 3 0 0;
396 max: 32 99999;
397 rel2.to_x: "elm.bar";
398 color: 255 255 255 0;
399 align: 1.0 0.5;
400 }
401 description { state: "active" 0.0;
402 inherit: "default" 0.0;
403 color: 255 255 255 255;
404 }
405 }
406 part { name: "glow1b"; mouse_events: 0;
407 description { state: "default" 0.0;
408 image.normal: "downlight_glow_right.png";
409 max: 4 99999;
410 rel1.to_x: "elm.bar";
411 color: 255 255 255 0;
412 align: 0.0 0.5;
413 }
414 description { state: "active" 0.0;
415 inherit: "default" 0.0;
416 color: 255 255 255 255;
417 }
418 }
419 part { name: "glow2a"; mouse_events: 0;
420 description { state: "default" 0.0;
421 image.normal: "downlight_glow_left.png";
422 max: 4 99999;
423 rel2.to_x: "elm.bar";
424 color: 255 255 255 0;
425 align: 1.0 0.5;
426 }
427 description { state: "active" 0.0;
428 inherit: "default" 0.0;
429 color: 255 255 255 255;
430 }
431 }
432 part { name: "glow2b"; mouse_events: 0;
433 description { state: "default" 0.0;
434 image.normal: "downlight_glow_right.png";
435 image.border: 3 0 0 0;
436 max: 32 99999;
437 rel1.to_x: "elm.bar";
438 color: 255 255 255 0;
439 align: 0.0 0.5;
440 }
441 description { state: "active" 0.0;
442 inherit: "default" 0.0;
443 color: 255 255 255 255;
444 }
445 }
446 part { name: "bar1"; type: RECT; repeat_events: 1;
447 description { state: "default" 0.0;
448 fixed: 1 1;
449 rel1.to: "bar";
450 rel2.to: "bar";
451 rel2.relative: 0.5 1.0;
452 color: 0 0 0 0;
453 }
454 }
455 part { name: "bar2"; type: RECT; repeat_events: 1;
456 description { state: "default" 0.0;
457 fixed: 1 1;
458 rel1.to: "bar";
459 rel1.relative: 0.5 0.0;
460 rel2.to: "bar";
461 color: 0 0 0 0;
462 }
463 }
464 }
465 programs {
466 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
467 action: SIGNAL_EMIT "elm,action,press" "elm";
468 }
469 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
470 action: SIGNAL_EMIT "elm,action,unpress" "elm";
471 }
472 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
473 action: SIGNAL_EMIT "elm,action,click" "elm";
474 }
475 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
476 action: SIGNAL_EMIT "elm,action,click,double" "elm";
477 }
478 program { // for elm_panes_fixed_set()
479 signal: "elm,panes,fixed"; source: "elm";
480 action: STATE_SET "disabled" 0.0;
481 target: "bar";
482 }
483 program { // for elm_panes_fixed_set()
484 signal: "elm,panes,unfixed"; source: "elm";
485 action: STATE_SET "default" 0.0;
486 target: "bar";
487 }
488 program {
489 signal: "mouse,in"; source: "bar1";
490 action: STATE_SET "active" 0.0;
491 transition: BOUNCE 0.4 0.5 4;
492 target: "glow1a";
493 target: "glow1b";
494 }
495 program {
496 signal: "mouse,out"; source: "bar1";
497 action: STATE_SET "default" 0.0;
498 transition: DECELERATE 0.5;
499 target: "glow1a";
500 target: "glow1b";
501 }
502 program {
503 signal: "mouse,in"; source: "bar2";
504 action: STATE_SET "active" 0.0;
505 transition: BOUNCE 0.4 0.5 4;
506 target: "glow2a";
507 target: "glow2b";
508 }
509 program {
510 signal: "mouse,out"; source: "bar2";
511 action: STATE_SET "default" 0.0;
512 transition: DECELERATE 0.5;
513 target: "glow2a";
514 target: "glow2b";
515 }
516 }
517}
518
519group { name: "elm/panes/horizontal/flush";
520 images.image: "downlight_glow.png" COMP;
521 images.image: "downlight_glow_up.png" COMP;
522 parts {
523 part { name: "whole"; type: SPACER;
524 description { state: "default" 0.0;
525 }
526 }
527 part { name: "right_constraint"; type: SPACER;
528 dragable { confine: "whole";
529 x: 0 0 0;
530 y: 1 1 1;
531 }
532 description { state: "default" 0.0;
533 max: 0 0;
534 }
535 }
536 part { name: "left_constraint"; type: SPACER;
537 dragable { confine: "whole";
538 x: 0 0 0;
539 y: 1 1 1;
540 }
541 description { state: "default" 0.0;
542 max: 0 0;
543 }
544 }
545 part { name: "sub_whole"; type: SPACER;
546 description { state: "default" 0.0;
547 rel1.relative: 0.0 1.0;
548 rel1.to_y: "left_constraint";
549 rel2.relative: 1.0 0.0;
550 rel2.to_y: "right_constraint";
551 }
552 }
553 part { name: "whole_left"; type: RECT;
554 description { state: "default" 0.0;
555 rel2.to_y: "elm.bar";
556 rel2.relative: 1.0 1.0;
557 }
558 }
559 part { name: "whole_right"; type: RECT;
560 description { state: "default" 0.0;
561 rel1.to_y: "elm.bar";
562 rel1.relative: 0.0 0.0;
563 }
564 }
565 part { name: "elm.swallow.left"; type: SWALLOW;
566 clip_to: "whole_left";
567 description { state: "default" 0.0;
568 rel2.to_y: "elm.bar";
569 rel2.relative: 1.0 1.0;
570 fixed: 0 1;
571 }
572 }
573 part { name: "elm.swallow.right"; type: SWALLOW;
574 clip_to: "whole_right";
575 description { state: "default" 0.0;
576 rel1.to_y: "elm.bar";
577 rel1.relative: 0.0 0.0;
578 fixed: 0 1;
579 }
580 }
581 part { name: "elm.bar"; type: SPACER;
582 dragable { confine: "sub_whole";
583 x: 0 0 0;
584 y: 1 1 1;
585 }
586 description { state: "default" 0.0;
587 max: 99999 0;
588 min: 14 0;
589 fixed: 1 1;
590 rel1.relative: 0.5 0.0;
591 rel2.relative: 0.5 1.0;
592 }
593 }
594 part { name: "elm.swallow.event"; type: SWALLOW;
595 description { state: "default" 0.0;
596 visible: 0;
597 min: PANEMIN2 PANEMIN;
598 fixed: 1 1;
599 rel1.to: "elm.bar";
600 rel2.to: "elm.bar";
601 }
602 }
603 part { name: "bar"; type: RECT;
604 dragable.events: "elm.bar";
605 description { state: "default" 0.0;
606 min: PANEWID PANEMIN;
607 max: 99999 99999;
608 fixed: 1 1;
609 rel1.to_y: "elm.swallow.event";
610 rel1.relative: 0.25 0.0;
611 rel2.to_y: "elm.swallow.event";
612 rel2.relative: 0.75 1.0;
613 color: 0 0 0 0;
614 }
615 description { state: "disabled" 0.0;
616 inherit: "default" 0.0;
617 visible: 0;
618 }
619 }
620 part { name: "glow1a"; mouse_events: 0;
621 description { state: "default" 0.0;
622 image.normal: "downlight_glow_up.png";
623 image.border: 0 0 0 3;
624 max: 99999 32;
625 rel2.to_y: "elm.bar";
626 color: 255 255 255 0;
627 align: 0.5 1.0;
628 }
629 description { state: "active" 0.0;
630 inherit: "default" 0.0;
631 color: 255 255 255 255;
632 }
633 }
634 part { name: "glow1b"; mouse_events: 0;
635 description { state: "default" 0.0;
636 image.normal: "downlight_glow.png";
637 max: 99999 4;
638 rel1.to_y: "elm.bar";
639 color: 255 255 255 0;
640 align: 0.5 0.0;
641 }
642 description { state: "active" 0.0;
643 inherit: "default" 0.0;
644 color: 255 255 255 255;
645 }
646 }
647 part { name: "glow2a"; mouse_events: 0;
648 description { state: "default" 0.0;
649 image.normal: "downlight_glow_up.png";
650 max: 99999 4;
651 rel2.to_y: "elm.bar";
652 color: 255 255 255 0;
653 align: 0.5 1.0;
654 }
655 description { state: "active" 0.0;
656 inherit: "default" 0.0;
657 color: 255 255 255 255;
658 }
659 }
660 part { name: "glow2b"; mouse_events: 0;
661 description { state: "default" 0.0;
662 image.normal: "downlight_glow.png";
663 image.border: 0 0 3 0;
664 max: 99999 32;
665 rel1.to_y: "elm.bar";
666 color: 255 255 255 0;
667 align: 0.5 0.0;
668 }
669 description { state: "active" 0.0;
670 inherit: "default" 0.0;
671 color: 255 255 255 255;
672 }
673 }
674 part { name: "bar1"; type: RECT; repeat_events: 1;
675 description { state: "default" 0.0;
676 fixed: 1 1;
677 rel1.to: "bar";
678 rel2.to: "bar";
679 rel2.relative: 1.0 0.5;
680 color: 0 0 0 0;
681 }
682 }
683 part { name: "bar2"; type: RECT; repeat_events: 1;
684 description { state: "default" 0.0;
685 fixed: 1 1;
686 rel1.to: "bar";
687 rel1.relative: 0.0 0.5;
688 rel2.to: "bar";
689 color: 0 0 0 0;
690 }
691 }
692 }
693 programs {
694 program {
695 signal: "mouse,in"; source: "bar1";
696 action: STATE_SET "active" 0.0;
697 transition: BOUNCE 0.4 0.5 4;
698 target: "glow1a";
699 target: "glow1b";
700 }
701 program {
702 signal: "mouse,out"; source: "bar1";
703 action: STATE_SET "default" 0.0;
704 transition: DECELERATE 0.5;
705 target: "glow1a";
706 target: "glow1b";
707 }
708 program {
709 signal: "mouse,in"; source: "bar2";
710 action: STATE_SET "active" 0.0;
711 transition: BOUNCE 0.4 0.5 4;
712 target: "glow2a";
713 target: "glow2b";
714 }
715 program {
716 signal: "mouse,out"; source: "bar2";
717 action: STATE_SET "default" 0.0;
718 transition: DECELERATE 0.5;
719 target: "glow2a";
720 target: "glow2b";
721 }
722 program {signal: "mouse,down,1"; source: "bar"; // for "press" smart callback
723 action: SIGNAL_EMIT "elm,action,press" "elm";
724 }
725 program { signal: "mouse,up,1"; source: "bar"; // for "unpress" smart callback
726 action: SIGNAL_EMIT "elm,action,unpress" "elm";
727 }
728 program { signal: "mouse,clicked,1"; source: "bar"; // for "clicked" smart callback
729 action: SIGNAL_EMIT "elm,action,click" "elm";
730 }
731 program { signal: "mouse,down,1,double"; source: "bar"; // for "clicked,double" smart callback
732 action: SIGNAL_EMIT "elm,action,click,double" "elm";
733 }
734 program { // for elm_panes_fixed_set()
735 signal: "elm,panes,fixed"; source: "elm";
736 action: STATE_SET "disabled" 0.0;
737 target: "bar";
738 }
739 program { // for elm_panes_fixed_set()
740 signal: "elm,panes,unfixed"; source: "elm";
741 action: STATE_SET "default" 0.0;
742 target: "bar";
743 }
744 }
745}
746
747group { name: "elm/panes/vertical/left-fold";
748 inherit: "elm/panes/vertical/default";
749 images.image: "icon_arrow_left.png" COMP;
750 images.image: "icon_arrow_right.png" COMP;
751 script {
752 public open;
753 public drag_x;
754 public drag_y;
755 }
756 parts {
757 spacer { "sub_whole";
758 desc { "default";
759 rel1.offset: 3 0;
760 }
761 }
762 image { "dots";
763 desc { "default";
764 image.normal: "icon_arrow_left.png";
765 FIXED_SIZE(14, 14)
766 }
767 desc { "closed";
768 inherit: "default" 0.0;
769 image.normal: "icon_arrow_right.png";
770 }
771 }
772 rect { "event";
773 repeat;
774 desc { "default";
775 rel1.to: "dots";
776 rel2.to: "dots";
777 color: 0 0 0 0;
778 }
779 }
780 }
781 programs {
782 program { signal: "load"; source: "";
783 script {
784 set_int(open, 1);
785 }
786 }
787 program { signal: "mouse,clicked,1"; source: "event";
788 script {
789 if (get_int(open) == 1)
790 {
791 new Float: dx;
792 new Float: dy;
793 set_int(open, 0);
794 get_drag(PART:"elm.bar", dx, dy);
795 set_float(drag_x, dx);
796 set_drag(PART:"elm.bar", 0.0, 0.5);
797 set_state(PART:"dots", "closed", 0.0);
798 }
799 else if (get_int(open) == 0)
800 {
801 set_int(open, 1);
802 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
803 set_state(PART:"dots", "default", 0.0);
804 }
805 }
806 }
807 }
808}
809
810group { name: "elm/panes/vertical/right-fold";
811 inherit: "elm/panes/vertical/default";
812 images.image: "icon_arrow_left.png" COMP;
813 images.image: "icon_arrow_right.png" COMP;
814 script {
815 public open;
816 public drag_x;
817 public drag_y;
818 }
819 parts {
820 spacer { "sub_whole";
821 desc { "default";
822 rel2.offset: -4 0;
823 }
824 }
825 image { "dots";
826 desc { "default";
827 image.normal: "icon_arrow_right.png";
828 FIXED_SIZE(14, 17)
829 }
830 desc { "closed";
831 inherit: "default" 0.0;
832 image.normal: "icon_arrow_left.png";
833 }
834 }
835 rect { "event";
836 repeat;
837 desc { "default";
838 rel1.to: "dots";
839 rel2.to: "dots";
840 color: 0 0 0 0;
841 }
842 }
843 }
844 programs {
845 program { signal: "load"; source: "";
846 script {
847 set_int(open, 1);
848 }
849 }
850 program { signal: "mouse,clicked,1"; source: "event";
851 script {
852 if (get_int(open) == 1)
853 {
854 new Float: dx;
855 new Float: dy;
856 set_int(open, 0);
857 get_drag(PART:"elm.bar", dx, dy);
858 set_float(drag_x, dx);
859 set_drag(PART:"elm.bar", 1.0, 0.5);
860 set_state(PART:"dots", "closed", 0.0);
861 }
862 else if (get_int(open) == 0)
863 {
864 set_int(open, 1);
865 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
866 set_state(PART:"dots", "default", 0.0);
867 }
868 }
869 }
870 }
871}
872
873group { name: "elm/panes/horizontal/up-fold";
874 inherit: "elm/panes/horizontal/default";
875 images.image: "icon_arrow_up.png" COMP;
876 images.image: "icon_arrow_down.png" COMP;
877 script {
878 public open;
879 public drag_x;
880 public drag_y;
881 }
882 parts {
883 spacer { "sub_whole";
884 desc { "default";
885 rel1.offset: 0 3;
886 }
887 }
888 image { "dots";
889 desc { "default";
890 image.normal: "icon_arrow_up.png";
891 FIXED_SIZE(17, 14)
892 }
893 desc { "closed";
894 inherit: "default" 0.0;
895 image.normal: "icon_arrow_down.png";
896 }
897 }
898 rect { "event";
899 repeat;
900 desc { "default";
901 rel1.to: "dots";
902 rel2.to: "dots";
903 color: 0 0 0 0;
904 }
905 }
906 }
907 programs {
908 program { signal: "load"; source: "";
909 script {
910 set_int(open, 1);
911 }
912 }
913 program { signal: "mouse,clicked,1"; source: "event";
914 script {
915 if (get_int(open) == 1)
916 {
917 new Float: dx;
918 new Float: dy;
919 set_int(open, 0);
920 get_drag(PART:"elm.bar", dx, dy);
921 set_float(drag_y, dy);
922 set_drag(PART:"elm.bar", 0.5, 0.0);
923 set_state(PART:"dots", "closed", 0.0);
924 }
925 else if (get_int(open) == 0)
926 {
927 set_int(open, 1);
928 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
929 set_state(PART:"dots", "default", 0.0);
930 }
931 }
932 }
933 }
934}
935
936group { name: "elm/panes/horizontal/down-fold";
937 inherit: "elm/panes/horizontal/default";
938 images.image: "icon_arrow_up.png" COMP;
939 images.image: "icon_arrow_down.png" COMP;
940 script {
941 public open;
942 public drag_x;
943 public drag_y;
944 }
945 parts {
946 spacer { "sub_whole";
947 desc { "default";
948 rel2.offset: 0 -4;
949 }
950 }
951 image { "dots";
952 desc { "default";
953 image.normal: "icon_arrow_down.png";
954 FIXED_SIZE(17, 14)
955 }
956 desc { "closed";
957 inherit: "default" 0.0;
958 image.normal: "icon_arrow_up.png";
959 }
960 }
961 rect { "event";
962 repeat;
963 desc { "default";
964 rel1.to: "dots";
965 rel2.to: "dots";
966 color: 0 0 0 0;
967 }
968 }
969 }
970 programs {
971 program { signal: "load"; source: "";
972 script {
973 set_int(open, 1);
974 }
975 }
976 program { signal: "mouse,clicked,1"; source: "event";
977 script {
978 if (get_int(open) == 1)
979 {
980 new Float: dx;
981 new Float: dy;
982 set_int(open, 0);
983 get_drag(PART:"elm.bar", dx, dy);
984 set_float(drag_y, dy);
985 set_drag(PART:"elm.bar", 0.5, 1.0);
986 set_state(PART:"dots", "closed", 0.0);
987 }
988 else if (get_int(open) == 0)
989 {
990 set_int(open, 1);
991 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
992 set_state(PART:"dots", "default", 0.0);
993 }
994 }
995 }
996 }
997}