From 7a22a82eb7895b53c058c08370ba04469e20b70e Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 17 Dec 2012 09:19:58 +0000 Subject: [PATCH] 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 SVN revision: 81091 --- data/themes/edc/randr.edc | 169 +++++++++++++++++++++++++++++++++++++- 1 file changed, 168 insertions(+), 1 deletion(-) 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"; rel1.relative: 0.0 0.5; rel2.offset: -1 30; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.swallow.frame"; type: SWALLOW; description { state: "default" 0.0; } } } + programs { + program { + signal: "e,state,cloned"; source: "e"; + action: STATE_SET "cloned" 0.0; + target: "e.swallow.stand"; + } + } } group { name: "e/conf/randr/main/frame"; @@ -62,6 +73,54 @@ group { name: "e/conf/randr/main/frame"; rel2.to: "e.swallow.preview"; } } + part { name: "clone_bg"; type: RECT; mouse_events: 0; + description { state: "default" 0.0; + color: 0 0 0 64; + rel1.to: "e.box.clone"; + rel2.to: "e.box.clone"; + } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "e.box.clone"; type: BOX; + clip_to: "clone_clip"; + description { state: "default" 0.0; + rel1.to: "e.swallow.preview"; + rel1.relative: 0.0 1.0; + rel1.offset: 0 -27; + rel2.to: "e.swallow.preview"; + box { + layout: "horizontal"; + padding: 2 0; + align: 0.0 0.5; + min: 1 1; + } + } + } + part { name: "clone_clip"; type: RECT; + description { state: "default" 0.0; + rel1.to: "e.box.clone"; + rel2.to: "e.box.clone"; + } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "drop_zone"; type: RECT; mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "e.swallow.preview"; + rel2.to: "e.swallow.preview"; + visible: 0; + } + description { state: "active" 0.0; + inherit: "default" 0.0; + color: 51 153 255 64; + visible: 1; + } + } part { name: "hole"; mouse_events: 0; description { state: "default" 0.0; rel1.offset: 4 -5; @@ -112,6 +171,10 @@ group { name: "e/conf/randr/main/frame"; min: 1.0 1.0; } } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.text.resolution"; type: TEXTBLOCK; mouse_events: 0; clip_to: "clip"; @@ -126,6 +189,10 @@ group { name: "e/conf/randr/main/frame"; min: 1.0 1.0; } } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "scr_shine"; mouse_events: 0; description { state: "default" 0.0; @@ -154,6 +221,10 @@ group { name: "e/conf/randr/main/frame"; rel2.relative: -1.0 -1.0; color: 255 255 255 0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "rsz2"; mouse_events: 0; description { state: "default" 0.0; @@ -171,6 +242,10 @@ group { name: "e/conf/randr/main/frame"; rel2.relative: 2.0 2.0; color: 255 255 255 0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "rotc"; type: RECT; description { state: "default" 0.0; @@ -199,6 +274,10 @@ group { name: "e/conf/randr/main/frame"; color: 255 255 255 0; map.rotation.z: -60; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "rot2"; mouse_events: 0; description { state: "default" 0.0; @@ -218,6 +297,10 @@ group { name: "e/conf/randr/main/frame"; color: 255 255 255 0; map.rotation.z: 60; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.swallow.refresh"; type: SWALLOW; clip_to: "clip"; @@ -267,6 +350,10 @@ group { name: "e/conf/randr/main/frame"; inherit: "default" 0.0; image.normal: "sym_down_light_selected.png"; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "arrow2"; mouse_events: 0; clip_to: "arrow2clip"; @@ -280,6 +367,10 @@ group { name: "e/conf/randr/main/frame"; inherit: "default" 0.0; image.normal: "sym_up_light_selected.png"; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.event.arrow.show"; type: RECT; description { state: "default" 0.0; @@ -287,6 +378,10 @@ group { name: "e/conf/randr/main/frame"; max: 21 21; align: 0.0 0.0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.event.rotate"; type: RECT; description { state: "default" 0.0; @@ -294,6 +389,10 @@ group { name: "e/conf/randr/main/frame"; max: 21 21; align: 1.0 0.0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.event.indicator"; type: RECT; description { state: "default" 0.0; @@ -301,6 +400,10 @@ group { name: "e/conf/randr/main/frame"; max: 21 21; align: 0.0 1.0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } part { name: "e.event.resize"; type: RECT; description { state: "default" 0.0; @@ -308,6 +411,10 @@ group { name: "e/conf/randr/main/frame"; max: 21 21; align: 1.0 1.0; } + description { state: "cloned" 0.0; + inherit: "default" 0.0; + visible: 0; + } } } programs { @@ -400,7 +507,34 @@ group { name: "e/conf/randr/main/frame"; action: STATE_SET "off" 0.0; target: "led"; } - + program { + signal: "e,state,cloned"; source: "e"; + action: STATE_SET "cloned" 0.0; + target: "clone_bg"; + target: "clone_clip"; + target: "e.text.name"; + target: "e.text.resolution"; + target: "rsz1"; + target: "rsz2"; + target: "rot1"; + target: "rot2"; + target: "arrow1"; + target: "arrow2"; + target: "e.event.arrow.show"; + target: "e.event.rotate"; + target: "e.event.resize"; + target: "e.event.indicator"; + } + program { + signal: "e,state,drop,on"; source: "e"; + action: STATE_SET "active" 0.0; + target: "drop_zone"; + } + program { + signal: "e,state,drop,off"; source: "e"; + action: STATE_SET "default" 0.0; + target: "drop_zone"; + } program { signal: "mouse,in"; source: "e.event.resize"; action: SIGNAL_EMIT "e,action,resize,in" "e"; @@ -462,3 +596,36 @@ group { name: "e/conf/randr/main/stand"; } } } + +group { name: "e/conf/randr/main/clone"; + images.image: "screen_bg.png" COMP; + images.image: "screen_fg.png" COMP; + images.image: "shine.png" COMP; + parts { + part { name: "base"; + description { state: "default" 0.0; + image.normal: "screen_bg.png"; + image.border: 4 4 4 4; + } + } + part { name: "e.swallow.preview"; type: SWALLOW; + clip_to: "clip"; + description { state: "default" 0.0; + rel1.offset: 5 5; + rel2.offset: -6 -11; + } + } + part { name: "clip"; type: RECT; + description { state: "default" 0.0; + rel1.to: "e.swallow.preview"; + rel2.to: "e.swallow.preview"; + } + } + part { name: "shine"; mouse_events: 0; + description { state: "default" 0.0; + image.normal: "screen_fg.png"; + image.border: 4 4 4 4; + } + } + } +}