From 79b426853eb3c4b50aa35d1aeca87df714a1f3b3 Mon Sep 17 00:00:00 2001 From: rivers Date: Mon, 13 Apr 2009 19:23:06 +0000 Subject: [PATCH] Added support for color (GainRed, GainBlue, GainGreen) git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@8754 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b --- ADApp/Db/simDetector_settings.req | 3 + ADApp/op/adl/simDetector.adl | 473 +++++++++++++++++++++--------- 2 files changed, 339 insertions(+), 137 deletions(-) diff --git a/ADApp/Db/simDetector_settings.req b/ADApp/Db/simDetector_settings.req index bcce007..d3ee8bc 100644 --- a/ADApp/Db/simDetector_settings.req +++ b/ADApp/Db/simDetector_settings.req @@ -1,2 +1,5 @@ $(P)$(R)GainX $(P)$(R)GainY +$(P)$(R)GainRed +$(P)$(R)GainGreen +$(P)$(R)GainBlue diff --git a/ADApp/op/adl/simDetector.adl b/ADApp/op/adl/simDetector.adl index b9414d7..8c6120f 100644 --- a/ADApp/op/adl/simDetector.adl +++ b/ADApp/op/adl/simDetector.adl @@ -1,14 +1,14 @@ file { - name="/home/epics/devel/areaDetector/1-1/ADApp/op/adl/simDetector.adl" - version=030000 + name="/home/epics/devel/areaDetector/1-5beta/ADApp/op/adl/simDetector.adl" + version=030102 } display { object { x=389 y=191 width=245 - height=220 + height=340 } clr=14 bclr=4 @@ -99,150 +99,19 @@ text { } textix="Simulation Detector" } -"related display" { - object { - x=92 - y=191 - width=60 - height=20 - } - display[0] { - label="Detector control" - name="ADBase.adl" - args="P=$(P), R=$(R)" - } - clr=14 - bclr=51 -} text { object { - x=18 - y=124 - width=40 - height=20 - } - "basic attribute" { - clr=14 - } - textix="Gain" - align="horiz. right" -} -"text entry" { - object { - x=67 - y=124 - width=60 - height=20 - } - control { - chan="$(P)$(R)GainX" - clr=14 - bclr=51 - } - limits { - } -} -"text entry" { - object { - x=165 - y=124 - width=60 - height=20 - } - control { - chan="$(P)$(R)GainY" - clr=14 - bclr=51 - } - limits { - } -} -"text update" { - object { - x=67 - y=103 - width=61 - height=18 - } - monitor { - chan="$(P)$(R)GainX_RBV" - clr=54 - bclr=4 - } - align="horiz. centered" - limits { - } -} -"text update" { - object { - x=165 - y=103 - width=61 - height=18 - } - monitor { - chan="$(P)$(R)GainY_RBV" - clr=54 - bclr=4 - } - align="horiz. centered" - limits { - } -} -text { - object { - x=101 - y=80 - width=10 - height=20 - } - "basic attribute" { - clr=14 - } - textix="X" - align="horiz. right" -} -text { - object { - x=193 - y=80 - width=10 - height=20 - } - "basic attribute" { - clr=14 - } - textix="Y" - align="horiz. right" -} -text { - object { - x=71 - y=155 + x=97 + y=74 width=50 height=20 } "basic attribute" { clr=14 } - textix="Reset" + textix="Gains" align="horiz. right" } -"message button" { - object { - x=132 - y=155 - width=100 - height=20 - } - control { - chan="$(P)$(R)Reset" - clr=14 - bclr=51 - } - label="Reset image" - press_msg="1" -} text { object { x=84 @@ -256,3 +125,333 @@ text { textix="$(P)$(R)" align="horiz. centered" } +"related display" { + object { + x=92 + y=308 + width=60 + height=20 + } + display[0] { + label="Detector control" + name="ADBase.adl" + args="P=$(P), R=$(R)" + } + clr=14 + bclr=51 +} +"text entry" { + object { + x=90 + y=132 + width=60 + height=20 + } + control { + chan="$(P)$(R)GainY" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=133 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)GainY_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +text { + object { + x=72 + y=132 + width=10 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Y" + align="horiz. right" +} +text { + object { + x=72 + y=107 + width=10 + height=20 + } + "basic attribute" { + clr=14 + } + textix="X" + align="horiz. right" +} +"text entry" { + object { + x=90 + y=107 + width=60 + height=20 + } + control { + chan="$(P)$(R)GainX" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=108 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)GainX_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +text { + object { + x=42 + y=157 + width=40 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Overall" + align="horiz. right" +} +"text entry" { + object { + x=90 + y=157 + width=60 + height=20 + } + control { + chan="$(P)$(R)Gain" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=158 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)Gain_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +text { + object { + x=52 + y=182 + width=30 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Red" + align="horiz. right" +} +"text entry" { + object { + x=90 + y=182 + width=60 + height=20 + } + control { + chan="$(P)$(R)GainRed" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=183 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)GainRed_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +text { + object { + x=32 + y=207 + width=50 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Green" + align="horiz. right" +} +"text entry" { + object { + x=90 + y=207 + width=60 + height=20 + } + control { + chan="$(P)$(R)GainGreen" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=208 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)GainGreen_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +text { + object { + x=42 + y=232 + width=40 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Blue" + align="horiz. right" +} +"text entry" { + object { + x=90 + y=232 + width=60 + height=20 + } + control { + chan="$(P)$(R)GainBlue" + clr=14 + bclr=51 + } + limits { + } +} +"text update" { + object { + x=152 + y=233 + width=61 + height=18 + } + monitor { + chan="$(P)$(R)GainBlue_RBV" + clr=54 + bclr=4 + } + align="horiz. centered" + limits { + } +} +rectangle { + object { + x=5 + y=69 + width=235 + height=195 + } + "basic attribute" { + clr=14 + fill="outline" + } +} +composite { + object { + x=42 + y=276 + width=161 + height=20 + } + "composite name"="" + children { + "message button" { + object { + x=103 + y=276 + width=100 + height=20 + } + control { + chan="$(P)$(R)Reset" + clr=14 + bclr=51 + } + label="Reset image" + press_msg="1" + } + text { + object { + x=42 + y=276 + width=50 + height=20 + } + "basic attribute" { + clr=14 + } + textix="Reset" + align="horiz. right" + } + } +}