summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2012-12-17 09:19:58 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-12-17 09:19:58 +0000
commit7a22a82eb7895b53c058c08370ba04469e20b70e (patch)
tree2a7c2f630ca6bc51b2fea7f1a702f89358e5eeef /data
parent710b996818b1b3e26b4415f258abd07b78760024 (diff)
Add a "cloned " state for the monitor which turns off the stand, text,
and other things. Add a clone box to hold any monitors which were dropped. Add a "drop_zone" to the monitor to indicate we can drop other monitors here. Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 81091
Diffstat (limited to 'data')
-rw-r--r--data/themes/edc/randr.edc169
1 files changed, 168 insertions, 1 deletions
diff --git a/data/themes/edc/randr.edc b/data/themes/edc/randr.edc
index 9309597ac..891ceeb45 100644
--- a/data/themes/edc/randr.edc
+++ b/data/themes/edc/randr.edc
@@ -6,12 +6,23 @@ group { name: "e/conf/randr/main/monitor";
6 rel1.relative: 0.0 0.5; 6 rel1.relative: 0.0 0.5;
7 rel2.offset: -1 30; 7 rel2.offset: -1 30;
8 } 8 }
9 description { state: "cloned" 0.0;
10 inherit: "default" 0.0;
11 visible: 0;
12 }
9 } 13 }
10 part { name: "e.swallow.frame"; type: SWALLOW; 14 part { name: "e.swallow.frame"; type: SWALLOW;
11 description { state: "default" 0.0; 15 description { state: "default" 0.0;
12 } 16 }
13 } 17 }
14 } 18 }
19 programs {
20 program {
21 signal: "e,state,cloned"; source: "e";
22 action: STATE_SET "cloned" 0.0;
23 target: "e.swallow.stand";
24 }
25 }
15} 26}
16 27
17group { name: "e/conf/randr/main/frame"; 28group { name: "e/conf/randr/main/frame";
@@ -62,6 +73,54 @@ group { name: "e/conf/randr/main/frame";
62 rel2.to: "e.swallow.preview"; 73 rel2.to: "e.swallow.preview";
63 } 74 }
64 } 75 }
76 part { name: "clone_bg"; type: RECT; mouse_events: 0;
77 description { state: "default" 0.0;
78 color: 0 0 0 64;
79 rel1.to: "e.box.clone";
80 rel2.to: "e.box.clone";
81 }
82 description { state: "cloned" 0.0;
83 inherit: "default" 0.0;
84 visible: 0;
85 }
86 }
87 part { name: "e.box.clone"; type: BOX;
88 clip_to: "clone_clip";
89 description { state: "default" 0.0;
90 rel1.to: "e.swallow.preview";
91 rel1.relative: 0.0 1.0;
92 rel1.offset: 0 -27;
93 rel2.to: "e.swallow.preview";
94 box {
95 layout: "horizontal";
96 padding: 2 0;
97 align: 0.0 0.5;
98 min: 1 1;
99 }
100 }
101 }
102 part { name: "clone_clip"; type: RECT;
103 description { state: "default" 0.0;
104 rel1.to: "e.box.clone";
105 rel2.to: "e.box.clone";
106 }
107 description { state: "cloned" 0.0;
108 inherit: "default" 0.0;
109 visible: 0;
110 }
111 }
112 part { name: "drop_zone"; type: RECT; mouse_events: 0;
113 description { state: "default" 0.0;
114 rel1.to: "e.swallow.preview";
115 rel2.to: "e.swallow.preview";
116 visible: 0;
117 }
118 description { state: "active" 0.0;
119 inherit: "default" 0.0;
120 color: 51 153 255 64;
121 visible: 1;
122 }
123 }
65 part { name: "hole"; mouse_events: 0; 124 part { name: "hole"; mouse_events: 0;
66 description { state: "default" 0.0; 125 description { state: "default" 0.0;
67 rel1.offset: 4 -5; 126 rel1.offset: 4 -5;
@@ -112,6 +171,10 @@ group { name: "e/conf/randr/main/frame";
112 min: 1.0 1.0; 171 min: 1.0 1.0;
113 } 172 }
114 } 173 }
174 description { state: "cloned" 0.0;
175 inherit: "default" 0.0;
176 visible: 0;
177 }
115 } 178 }
116 part { name: "e.text.resolution"; type: TEXTBLOCK; mouse_events: 0; 179 part { name: "e.text.resolution"; type: TEXTBLOCK; mouse_events: 0;
117 clip_to: "clip"; 180 clip_to: "clip";
@@ -126,6 +189,10 @@ group { name: "e/conf/randr/main/frame";
126 min: 1.0 1.0; 189 min: 1.0 1.0;
127 } 190 }
128 } 191 }
192 description { state: "cloned" 0.0;
193 inherit: "default" 0.0;
194 visible: 0;
195 }
129 } 196 }
130 part { name: "scr_shine"; mouse_events: 0; 197 part { name: "scr_shine"; mouse_events: 0;
131 description { state: "default" 0.0; 198 description { state: "default" 0.0;
@@ -154,6 +221,10 @@ group { name: "e/conf/randr/main/frame";
154 rel2.relative: -1.0 -1.0; 221 rel2.relative: -1.0 -1.0;
155 color: 255 255 255 0; 222 color: 255 255 255 0;
156 } 223 }
224 description { state: "cloned" 0.0;
225 inherit: "default" 0.0;
226 visible: 0;
227 }
157 } 228 }
158 part { name: "rsz2"; mouse_events: 0; 229 part { name: "rsz2"; mouse_events: 0;
159 description { state: "default" 0.0; 230 description { state: "default" 0.0;
@@ -171,6 +242,10 @@ group { name: "e/conf/randr/main/frame";
171 rel2.relative: 2.0 2.0; 242 rel2.relative: 2.0 2.0;
172 color: 255 255 255 0; 243 color: 255 255 255 0;
173 } 244 }
245 description { state: "cloned" 0.0;
246 inherit: "default" 0.0;
247 visible: 0;
248 }
174 } 249 }
175 part { name: "rotc"; type: RECT; 250 part { name: "rotc"; type: RECT;
176 description { state: "default" 0.0; 251 description { state: "default" 0.0;
@@ -199,6 +274,10 @@ group { name: "e/conf/randr/main/frame";
199 color: 255 255 255 0; 274 color: 255 255 255 0;
200 map.rotation.z: -60; 275 map.rotation.z: -60;
201 } 276 }
277 description { state: "cloned" 0.0;
278 inherit: "default" 0.0;
279 visible: 0;
280 }
202 } 281 }
203 part { name: "rot2"; mouse_events: 0; 282 part { name: "rot2"; mouse_events: 0;
204 description { state: "default" 0.0; 283 description { state: "default" 0.0;
@@ -218,6 +297,10 @@ group { name: "e/conf/randr/main/frame";
218 color: 255 255 255 0; 297 color: 255 255 255 0;
219 map.rotation.z: 60; 298 map.rotation.z: 60;
220 } 299 }
300 description { state: "cloned" 0.0;
301 inherit: "default" 0.0;
302 visible: 0;
303 }
221 } 304 }
222 part { name: "e.swallow.refresh"; type: SWALLOW; 305 part { name: "e.swallow.refresh"; type: SWALLOW;
223 clip_to: "clip"; 306 clip_to: "clip";
@@ -267,6 +350,10 @@ group { name: "e/conf/randr/main/frame";
267 inherit: "default" 0.0; 350 inherit: "default" 0.0;
268 image.normal: "sym_down_light_selected.png"; 351 image.normal: "sym_down_light_selected.png";
269 } 352 }
353 description { state: "cloned" 0.0;
354 inherit: "default" 0.0;
355 visible: 0;
356 }
270 } 357 }
271 part { name: "arrow2"; mouse_events: 0; 358 part { name: "arrow2"; mouse_events: 0;
272 clip_to: "arrow2clip"; 359 clip_to: "arrow2clip";
@@ -280,6 +367,10 @@ group { name: "e/conf/randr/main/frame";
280 inherit: "default" 0.0; 367 inherit: "default" 0.0;
281 image.normal: "sym_up_light_selected.png"; 368 image.normal: "sym_up_light_selected.png";
282 } 369 }
370 description { state: "cloned" 0.0;
371 inherit: "default" 0.0;
372 visible: 0;
373 }
283 } 374 }
284 part { name: "e.event.arrow.show"; type: RECT; 375 part { name: "e.event.arrow.show"; type: RECT;
285 description { state: "default" 0.0; 376 description { state: "default" 0.0;
@@ -287,6 +378,10 @@ group { name: "e/conf/randr/main/frame";
287 max: 21 21; 378 max: 21 21;
288 align: 0.0 0.0; 379 align: 0.0 0.0;
289 } 380 }
381 description { state: "cloned" 0.0;
382 inherit: "default" 0.0;
383 visible: 0;
384 }
290 } 385 }
291 part { name: "e.event.rotate"; type: RECT; 386 part { name: "e.event.rotate"; type: RECT;
292 description { state: "default" 0.0; 387 description { state: "default" 0.0;
@@ -294,6 +389,10 @@ group { name: "e/conf/randr/main/frame";
294 max: 21 21; 389 max: 21 21;
295 align: 1.0 0.0; 390 align: 1.0 0.0;
296 } 391 }
392 description { state: "cloned" 0.0;
393 inherit: "default" 0.0;
394 visible: 0;
395 }
297 } 396 }
298 part { name: "e.event.indicator"; type: RECT; 397 part { name: "e.event.indicator"; type: RECT;
299 description { state: "default" 0.0; 398 description { state: "default" 0.0;
@@ -301,6 +400,10 @@ group { name: "e/conf/randr/main/frame";
301 max: 21 21; 400 max: 21 21;
302 align: 0.0 1.0; 401 align: 0.0 1.0;
303 } 402 }
403 description { state: "cloned" 0.0;
404 inherit: "default" 0.0;
405 visible: 0;
406 }
304 } 407 }
305 part { name: "e.event.resize"; type: RECT; 408 part { name: "e.event.resize"; type: RECT;
306 description { state: "default" 0.0; 409 description { state: "default" 0.0;
@@ -308,6 +411,10 @@ group { name: "e/conf/randr/main/frame";
308 max: 21 21; 411 max: 21 21;
309 align: 1.0 1.0; 412 align: 1.0 1.0;
310 } 413 }
414 description { state: "cloned" 0.0;
415 inherit: "default" 0.0;
416 visible: 0;
417 }
311 } 418 }
312 } 419 }
313 programs { 420 programs {
@@ -400,7 +507,34 @@ group { name: "e/conf/randr/main/frame";
400 action: STATE_SET "off" 0.0; 507 action: STATE_SET "off" 0.0;
401 target: "led"; 508 target: "led";
402 } 509 }
403 510 program {
511 signal: "e,state,cloned"; source: "e";
512 action: STATE_SET "cloned" 0.0;
513 target: "clone_bg";
514 target: "clone_clip";
515 target: "e.text.name";
516 target: "e.text.resolution";
517 target: "rsz1";
518 target: "rsz2";
519 target: "rot1";
520 target: "rot2";
521 target: "arrow1";
522 target: "arrow2";
523 target: "e.event.arrow.show";
524 target: "e.event.rotate";
525 target: "e.event.resize";
526 target: "e.event.indicator";
527 }
528 program {
529 signal: "e,state,drop,on"; source: "e";
530 action: STATE_SET "active" 0.0;
531 target: "drop_zone";
532 }
533 program {
534 signal: "e,state,drop,off"; source: "e";
535 action: STATE_SET "default" 0.0;
536 target: "drop_zone";
537 }
404 program { 538 program {
405 signal: "mouse,in"; source: "e.event.resize"; 539 signal: "mouse,in"; source: "e.event.resize";
406 action: SIGNAL_EMIT "e,action,resize,in" "e"; 540 action: SIGNAL_EMIT "e,action,resize,in" "e";
@@ -462,3 +596,36 @@ group { name: "e/conf/randr/main/stand";
462 } 596 }
463 } 597 }
464} 598}
599
600group { name: "e/conf/randr/main/clone";
601 images.image: "screen_bg.png" COMP;
602 images.image: "screen_fg.png" COMP;
603 images.image: "shine.png" COMP;
604 parts {
605 part { name: "base";
606 description { state: "default" 0.0;
607 image.normal: "screen_bg.png";
608 image.border: 4 4 4 4;
609 }
610 }
611 part { name: "e.swallow.preview"; type: SWALLOW;
612 clip_to: "clip";
613 description { state: "default" 0.0;
614 rel1.offset: 5 5;
615 rel2.offset: -6 -11;
616 }
617 }
618 part { name: "clip"; type: RECT;
619 description { state: "default" 0.0;
620 rel1.to: "e.swallow.preview";
621 rel2.to: "e.swallow.preview";
622 }
623 }
624 part { name: "shine"; mouse_events: 0;
625 description { state: "default" 0.0;
626 image.normal: "screen_fg.png";
627 image.border: 4 4 4 4;
628 }
629 }
630 }
631}