From dc1fffd515a24c76225d1f854d840b7089af5181 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kriszti=C3=A1n=20L=C3=B6ki?= <krisztian.loki@ess.eu>
Date: Mon, 27 Sep 2021 17:35:48 +0200
Subject: [PATCH] Added deprecation notice to vacuum screens

---
 NON-APPROVED/lebt-010_vac/LEBT.bob | 58 ++++++++++++++++++++++++++++++
 NON-APPROVED/mebt-010_vac/MEBT.bob | 58 ++++++++++++++++++++++++++++++
 NON-APPROVED/rfq-010_vac/RFQ.bob   | 58 ++++++++++++++++++++++++++++++
 3 files changed, 174 insertions(+)

diff --git a/NON-APPROVED/lebt-010_vac/LEBT.bob b/NON-APPROVED/lebt-010_vac/LEBT.bob
index d922a26d..da651d46 100644
--- a/NON-APPROVED/lebt-010_vac/LEBT.bob
+++ b/NON-APPROVED/lebt-010_vac/LEBT.bob
@@ -1140,4 +1140,62 @@ Legend</text>
     <height>304</height>
     <resize>2</resize>
   </widget>
+  <widget type="group" version="2.0.0">
+    <name>deprecated_notice</name>
+    <x>610</x>
+    <y>310</y>
+    <width>800</width>
+    <height>600</height>
+    <style>3</style>
+    <transparent>true</transparent>
+    <widget type="rectangle" version="2.0.0">
+      <name>Rectangle</name>
+      <class>GROUP-RED</class>
+      <width>800</width>
+      <height>600</height>
+      <line_width>5</line_width>
+      <line_color use_class="true">
+        <color name="RED-GROUP-BORDER" red="167" green="134" blue="130">
+        </color>
+      </line_color>
+      <background_color use_class="true">
+        <color name="RED-GROUP-BACKGROUND" red="208" green="175" blue="172">
+        </color>
+      </background_color>
+      <corner_width>10</corner_width>
+      <corner_height>10</corner_height>
+    </widget>
+    <widget type="label" version="2.0.0">
+      <name>Label</name>
+      <text>This OPI is deprecated!
+Please use the ones in
+/opt/opis/20-SystemExpert/10-ACC/999-Vac</text>
+      <x>40</x>
+      <y>40</y>
+      <width>720</width>
+      <height>400</height>
+      <font>
+        <font name="HUGE-SANS-BOLD" family="Source Sans Pro" style="BOLD" size="36.0">
+        </font>
+      </font>
+      <horizontal_alignment>1</horizontal_alignment>
+      <vertical_alignment>1</vertical_alignment>
+    </widget>
+    <widget type="action_button" version="3.0.0">
+      <name>Action Button</name>
+      <actions>
+        <action type="execute">
+          <script file="EmbeddedPy">
+            <text><![CDATA[# Embedded python script
+from org.csstudio.display.builder.runtime.script import ScriptUtil
+ScriptUtil.findWidgetByName(widget, "deprecated_notice").setPropertyValue('visible', False)]]></text>
+          </script>
+          <description>Close</description>
+        </action>
+      </actions>
+      <x>350</x>
+      <y>460</y>
+      <tooltip>$(actions)</tooltip>
+    </widget>
+  </widget>
 </display>
diff --git a/NON-APPROVED/mebt-010_vac/MEBT.bob b/NON-APPROVED/mebt-010_vac/MEBT.bob
index 969a602a..f9a18891 100644
--- a/NON-APPROVED/mebt-010_vac/MEBT.bob
+++ b/NON-APPROVED/mebt-010_vac/MEBT.bob
@@ -771,4 +771,62 @@ Legend</text>
     <height>304</height>
     <resize>2</resize>
   </widget>
+  <widget type="group" version="2.0.0">
+    <name>deprecated_notice</name>
+    <x>610</x>
+    <y>190</y>
+    <width>800</width>
+    <height>600</height>
+    <style>3</style>
+    <transparent>true</transparent>
+    <widget type="rectangle" version="2.0.0">
+      <name>Rectangle</name>
+      <class>GROUP-RED</class>
+      <width>800</width>
+      <height>600</height>
+      <line_width>5</line_width>
+      <line_color use_class="true">
+        <color name="RED-GROUP-BORDER" red="167" green="134" blue="130">
+        </color>
+      </line_color>
+      <background_color use_class="true">
+        <color name="RED-GROUP-BACKGROUND" red="208" green="175" blue="172">
+        </color>
+      </background_color>
+      <corner_width>10</corner_width>
+      <corner_height>10</corner_height>
+    </widget>
+    <widget type="label" version="2.0.0">
+      <name>Label</name>
+      <text>This OPI is deprecated!
+Please use the ones in
+/opt/opis/20-SystemExpert/10-ACC/999-Vac</text>
+      <x>40</x>
+      <y>40</y>
+      <width>720</width>
+      <height>400</height>
+      <font>
+        <font name="HUGE-SANS-BOLD" family="Source Sans Pro" style="BOLD" size="36.0">
+        </font>
+      </font>
+      <horizontal_alignment>1</horizontal_alignment>
+      <vertical_alignment>1</vertical_alignment>
+    </widget>
+    <widget type="action_button" version="3.0.0">
+      <name>Action Button</name>
+      <actions>
+        <action type="execute">
+          <script file="EmbeddedPy">
+            <text><![CDATA[# Embedded python script
+from org.csstudio.display.builder.runtime.script import ScriptUtil
+ScriptUtil.findWidgetByName(widget, "deprecated_notice").setPropertyValue('visible', False)]]></text>
+          </script>
+          <description>Close</description>
+        </action>
+      </actions>
+      <x>350</x>
+      <y>460</y>
+      <tooltip>$(actions)</tooltip>
+    </widget>
+  </widget>
 </display>
diff --git a/NON-APPROVED/rfq-010_vac/RFQ.bob b/NON-APPROVED/rfq-010_vac/RFQ.bob
index f6deba14..9da341f8 100644
--- a/NON-APPROVED/rfq-010_vac/RFQ.bob
+++ b/NON-APPROVED/rfq-010_vac/RFQ.bob
@@ -1269,4 +1269,62 @@ Leak Testing</text>
     </line_color>
     <line_style>1</line_style>
   </widget>
+  <widget type="group" version="2.0.0">
+    <name>deprecated_notice</name>
+    <x>610</x>
+    <y>310</y>
+    <width>800</width>
+    <height>600</height>
+    <style>3</style>
+    <transparent>true</transparent>
+    <widget type="rectangle" version="2.0.0">
+      <name>Rectangle</name>
+      <class>GROUP-RED</class>
+      <width>800</width>
+      <height>600</height>
+      <line_width>5</line_width>
+      <line_color use_class="true">
+        <color name="RED-GROUP-BORDER" red="167" green="134" blue="130">
+        </color>
+      </line_color>
+      <background_color use_class="true">
+        <color name="RED-GROUP-BACKGROUND" red="208" green="175" blue="172">
+        </color>
+      </background_color>
+      <corner_width>10</corner_width>
+      <corner_height>10</corner_height>
+    </widget>
+    <widget type="label" version="2.0.0">
+      <name>Label</name>
+      <text>This OPI is deprecated!
+Please use the ones in
+/opt/opis/20-SystemExpert/10-ACC/999-Vac</text>
+      <x>40</x>
+      <y>40</y>
+      <width>720</width>
+      <height>400</height>
+      <font>
+        <font name="HUGE-SANS-BOLD" family="Source Sans Pro" style="BOLD" size="36.0">
+        </font>
+      </font>
+      <horizontal_alignment>1</horizontal_alignment>
+      <vertical_alignment>1</vertical_alignment>
+    </widget>
+    <widget type="action_button" version="3.0.0">
+      <name>Action Button</name>
+      <actions>
+        <action type="execute">
+          <script file="EmbeddedPy">
+            <text><![CDATA[# Embedded python script
+from org.csstudio.display.builder.runtime.script import ScriptUtil
+ScriptUtil.findWidgetByName(widget, "deprecated_notice").setPropertyValue('visible', False)]]></text>
+          </script>
+          <description>Close</description>
+        </action>
+      </actions>
+      <x>350</x>
+      <y>460</y>
+      <tooltip>$(actions)</tooltip>
+    </widget>
+  </widget>
 </display>
-- 
GitLab