From 5810da9cdc89e755d54a46d2e778f531497032c3 Mon Sep 17 00:00:00 2001
From: Juliano Murari <juliano.murari@ess.eu>
Date: Thu, 17 Aug 2023 10:23:18 +0200
Subject: [PATCH] Add vertical and horizontal preview on top OPI

---
 10-Top/npm/instance.bob | 31 ++++++++++++++++++++++---------
 10-Top/npm/top.bob      |  3 +--
 2 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/10-Top/npm/instance.bob b/10-Top/npm/instance.bob
index e6abda7..47c57c3 100644
--- a/10-Top/npm/instance.bob
+++ b/10-Top/npm/instance.bob
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--Saved on 2023-07-24 15:30:23 by julianomurari-->
 <display version="2.0.0">
   <name>npm_launcher_instance</name>
   <width>400</width>
@@ -49,13 +48,12 @@
         <file>support/npmUserOverview.bob</file>
         <macros>
           <secsub>$(P)</secsub>
-          <disdevid>$(R)</disdevid>
         </macros>
         <target>tab</target>
-        <description>NPM $(P) $(R)</description>
+        <description>NPM $(P)</description>
       </action>
     </actions>
-    <text>$(P) $(R)</text>
+    <text>$(P)</text>
     <x>20</x>
     <y>48</y>
     <width>360</width>
@@ -64,17 +62,17 @@
   </widget>
   <widget type="led" version="2.0.0">
     <name>LED_4</name>
-    <pv_name>$(P):$(R):VCAM-DetectorState_RBV</pv_name>
+    <pv_name>$(P):PBI-NPM-002:VCAM-DetectorState_RBV</pv_name>
     <x>21</x>
     <y>49</y>
     <square>true</square>
   </widget>
   <widget type="label" version="2.0.0">
     <name>Label_5</name>
-    <text>Acquiring</text>
-    <x>50</x>
-    <y>48</y>
-    <width>70</width>
+    <text> Vertical</text>
+    <x>41</x>
+    <y>49</y>
+    <width>80</width>
   </widget>
   <widget type="label" version="2.0.0">
     <name>Label_4</name>
@@ -91,4 +89,19 @@
     </foreground_color>
     <horizontal_alignment>1</horizontal_alignment>
   </widget>
+  <widget type="led" version="2.0.0">
+    <name>LED_5</name>
+    <pv_name>$(P):PBI-NPM-001:HCAM-DetectorState_RBV</pv_name>
+    <x>360</x>
+    <y>48</y>
+    <square>true</square>
+  </widget>
+  <widget type="label" version="2.0.0">
+    <name>Label_6</name>
+    <text>Horizontal </text>
+    <x>280</x>
+    <y>48</y>
+    <width>80</width>
+    <horizontal_alignment>2</horizontal_alignment>
+  </widget>
 </display>
diff --git a/10-Top/npm/top.bob b/10-Top/npm/top.bob
index 60e3e3e..666795e 100644
--- a/10-Top/npm/top.bob
+++ b/10-Top/npm/top.bob
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--Saved on 2023-07-24 10:35:14 by julianomurari-->
 <display version="2.0.0">
   <name>NPM IOCs</name>
   <macros>
@@ -58,7 +57,7 @@
     <name>Embedded Display</name>
     <macros>
       <P>LEBT-010</P>
-      <R>PBI-NPM-002</R>
+      <R>PBI-NPM-001</R>
     </macros>
     <file>instance.bob</file>
     <x>10</x>
-- 
GitLab