From cabc79f14f66ba32147422e228903e4dbe75776a Mon Sep 17 00:00:00 2001
From: Juliano Murari <juliano.murari@ess.eu>
Date: Fri, 3 Jun 2022 09:48:22 +0200
Subject: [PATCH] Add button to open EVR OPI

---
 99-Shared/adsis8300bcm/bcm_crate.bob | 79 ++++++++++++++++++----------
 1 file changed, 51 insertions(+), 28 deletions(-)

diff --git a/99-Shared/adsis8300bcm/bcm_crate.bob b/99-Shared/adsis8300bcm/bcm_crate.bob
index 9c06551..3776216 100644
--- a/99-Shared/adsis8300bcm/bcm_crate.bob
+++ b/99-Shared/adsis8300bcm/bcm_crate.bob
@@ -24,8 +24,8 @@
     <text>BCM Eng. OPI - $(P)</text>
     <x use_class="true">20</x>
     <y use_class="true">0</y>
-    <width>297</width>
-    <height use_class="true">46</height>
+    <width>299</width>
+    <height use_class="true">52</height>
     <font use_class="true">
       <font name="Header 1" family="Source Sans Pro" style="BOLD_ITALIC" size="36.0">
       </font>
@@ -779,7 +779,7 @@ $(pv_value)</tooltip>
     <x>1273</x>
     <y>18</y>
     <width>66</width>
-    <height>16</height>
+    <height>18</height>
     <font>
       <font family="Source Sans Pro" style="REGULAR" size="12.0">
       </font>
@@ -832,7 +832,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <text>FW Ver.:</text>
     <x>1273</x>
     <width>41</width>
-    <height>16</height>
+    <height>18</height>
     <font>
       <font family="Source Sans Pro" style="REGULAR" size="12.0">
       </font>
@@ -1340,11 +1340,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_7</name>
-    <file>ml.bob</file>
     <macros>
       <ML>AlarmAuxClock</ML>
       <PVin>$(P)$(R)</PVin>
     </macros>
+    <file>ml.bob</file>
     <x>850</x>
     <y>124</y>
     <width>70</width>
@@ -1353,11 +1353,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_8</name>
-    <file>ml.bob</file>
     <macros>
       <ML>AlarmProcClock</ML>
       <PVin>$(P)$(R)</PVin>
     </macros>
+    <file>ml.bob</file>
     <x>850</x>
     <y>148</y>
     <width>70</width>
@@ -1366,11 +1366,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_9</name>
-    <file>ml.bob</file>
     <macros>
       <ML>AlarmTriggerTooNarrow</ML>
       <PVin>$(P)$(R)</PVin>
     </macros>
+    <file>ml.bob</file>
     <x>850</x>
     <y>172</y>
     <width>70</width>
@@ -1379,11 +1379,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_10</name>
-    <file>ml.bob</file>
     <macros>
       <ML>AlarmTriggerTooWide</ML>
       <PVin>$(P)$(R)</PVin>
     </macros>
+    <file>ml.bob</file>
     <x>850</x>
     <y>196</y>
     <width>70</width>
@@ -1392,11 +1392,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_11</name>
-    <file>ml.bob</file>
     <macros>
       <ML>AlarmTriggerPeriodTooShort</ML>
       <PVin>$(P)$(R)</PVin>
     </macros>
+    <file>ml.bob</file>
     <x>850</x>
     <y>220</y>
     <width>70</width>
@@ -1647,7 +1647,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <x>1273</x>
     <y>36</y>
     <width>43</width>
-    <height>16</height>
+    <height>18</height>
     <font>
       <font family="Source Sans Pro" style="REGULAR" size="12.0">
       </font>
@@ -1866,11 +1866,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>0</CH_NO>
       <SYSTEM>$(SYSTEM1)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>100</y>
     <width>450</width>
@@ -1878,11 +1878,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_1</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>1</CH_NO>
       <SYSTEM>$(SYSTEM2)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>184</y>
     <width>450</width>
@@ -1890,11 +1890,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_2</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>2</CH_NO>
       <SYSTEM>$(SYSTEM3)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>268</y>
     <width>450</width>
@@ -1902,11 +1902,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_3</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>3</CH_NO>
       <SYSTEM>$(SYSTEM4)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>352</y>
     <width>450</width>
@@ -1914,11 +1914,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_4</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>5</CH_NO>
       <SYSTEM>$(SYSTEM6)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>520</y>
     <width>440</width>
@@ -1926,11 +1926,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_5</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>6</CH_NO>
       <SYSTEM>$(SYSTEM7)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>604</y>
     <width>450</width>
@@ -1938,12 +1938,12 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_6</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>7</CH_NO>
       <HV_EN>1</HV_EN>
       <SYSTEM>$(SYSTEM8)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>688</y>
     <width>450</width>
@@ -1951,11 +1951,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_12</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>4</CH_NO>
       <SYSTEM>$(SYSTEM5)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>436</y>
     <width>450</width>
@@ -1968,7 +1968,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <x>520</x>
     <y>124</y>
     <width>141</width>
-    <height>21</height>
+    <height>25</height>
     <off_color>
       <color red="0" green="255" blue="0">
       </color>
@@ -1987,8 +1987,8 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <label>Processing Clock</label>
     <x>520</x>
     <y>148</y>
-    <width>156</width>
-    <height>21</height>
+    <width>157</width>
+    <height>25</height>
     <off_color>
       <color red="0" green="255" blue="0">
       </color>
@@ -2008,7 +2008,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <x>520</x>
     <y>196</y>
     <width>202</width>
-    <height>21</height>
+    <height>25</height>
     <off_color>
       <color red="0" green="255" blue="0">
       </color>
@@ -2028,7 +2028,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <x>520</x>
     <y>172</y>
     <width>115</width>
-    <height>21</height>
+    <height>25</height>
     <off_color>
       <color red="0" green="255" blue="0">
       </color>
@@ -2048,7 +2048,7 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
     <x>520</x>
     <y>220</y>
     <width>197</width>
-    <height>21</height>
+    <height>25</height>
     <off_color>
       <color red="0" green="255" blue="0">
       </color>
@@ -2063,11 +2063,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_13</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>9</CH_NO>
       <SYSTEM>$(SYSTEM9)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>771</y>
     <width>450</width>
@@ -2075,11 +2075,11 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_14</name>
-    <file>acct_inst.bob</file>
     <macros>
       <CH_NO>9</CH_NO>
       <SYSTEM>$(SYSTEM10)</SYSTEM>
     </macros>
+    <file>acct_inst.bob</file>
     <x>980</x>
     <y>855</y>
     <width>450</width>
@@ -2369,10 +2369,10 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_16</name>
-    <file>optic_inst.bob</file>
     <macros>
       <OptIndex>1</OptIndex>
     </macros>
+    <file>optic_inst.bob</file>
     <x>500</x>
     <y>850</y>
     <width>460</width>
@@ -2380,10 +2380,10 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
   </widget>
   <widget type="embedded" version="2.0.0">
     <name>Embedded Display_17</name>
-    <file>optic_inst.bob</file>
     <macros>
       <OptIndex>2</OptIndex>
     </macros>
+    <file>optic_inst.bob</file>
     <x>500</x>
     <y>970</y>
     <width>450</width>
@@ -2453,4 +2453,27 @@ pvs[1].setValue("{0}.{1}.{2}".format((ver>>24)&0x0f,(ver>>8)&0x0f,ver&0x0f))
       </color>
     </border_color>
   </widget>
+  <widget type="action_button" version="3.0.0">
+    <name>Action Button_49</name>
+    <actions>
+      <action type="open_display">
+        <file>../../99-Shared/mrfioc2_new/evr-mtca-300u.bob</file>
+        <macros>
+          <EVR>$(P)Ctrl-EVR-101</EVR>
+          <P>$(P)</P>
+          <R>Ctrl-EVR-101:</R>
+        </macros>
+        <target>replace</target>
+        <description>Open Display</description>
+      </action>
+    </actions>
+    <text>EVR OPI</text>
+    <x>333</x>
+    <y>960</y>
+    <width>120</width>
+    <background_color>
+      <color red="240" green="240" blue="240">
+      </color>
+    </background_color>
+  </widget>
 </display>
-- 
GitLab