From dc4e4fce637242f909b2bc05de79e83184ceb0c0 Mon Sep 17 00:00:00 2001
From: Elena Donegani <elena.donegani@ess.eu>
Date: Wed, 10 Jun 2020 18:30:41 +0200
Subject: [PATCH] Replace asynSerialPortSetup.bob

---
 99-Shared/asyn/asynSerialPortSetup.bob | 583 ++++++++++++++++++-------
 1 file changed, 434 insertions(+), 149 deletions(-)

diff --git a/99-Shared/asyn/asynSerialPortSetup.bob b/99-Shared/asyn/asynSerialPortSetup.bob
index b849dc5..5be8193 100644
--- a/99-Shared/asyn/asynSerialPortSetup.bob
+++ b/99-Shared/asyn/asynSerialPortSetup.bob
@@ -3,350 +3,635 @@
   <name>asynSerialPortSetup</name>
   <x>228</x>
   <y>79</y>
-  <width>260</width>
-  <height>300</height>
+  <width>280</width>
+  <height>400</height>
   <background_color>
-    <color red="187" green="187" blue="187">
+    <color red="240" green="240" blue="240">
     </color>
   </background_color>
-  <grid_visible>false</grid_visible>
-  <grid_step_x>5</grid_step_x>
+  <actions>
+  </actions>
+  <widget type="group" version="2.0.0">
+    <name>BGGrey03_12</name>
+    <x>10</x>
+    <y>60</y>
+    <width>250</width>
+    <height>310</height>
+    <style>3</style>
+    <background_color>
+      <color name="BACKGROUND" red="220" green="225" blue="221">
+      </color>
+    </background_color>
+    <widget type="textupdate" version="2.0.0">
+      <name>Text Update_24</name>
+      <pv_name>$(P)$(R)SamplingFrequencyR</pv_name>
+      <x>403</x>
+      <y>596</y>
+      <width>60</width>
+      <vertical_alignment>1</vertical_alignment>
+    </widget>
+  </widget>
   <widget type="rectangle" version="2.0.0">
-    <name>rectangle #6</name>
-    <y>2</y>
-    <width>260</width>
-    <height>16</height>
+    <name>BGGrey02-background</name>
+    <y>50</y>
+    <width>280</width>
+    <height>350</height>
+    <line_width>2</line_width>
     <line_color>
-      <color red="218" green="218" blue="218">
+      <color name="GROUP-BORDER" red="150" green="155" blue="151">
       </color>
     </line_color>
     <background_color>
-      <color red="218" green="218" blue="218">
+      <color name="GROUP-BACKGROUND" red="200" green="205" blue="201">
+      </color>
+    </background_color>
+    <corner_height>10</corner_height>
+  </widget>
+  <widget type="rectangle" version="2.0.0">
+    <name>Rectangle</name>
+    <class>TITLE-BAR</class>
+    <x use_class="true">0</x>
+    <y use_class="true">0</y>
+    <width>280</width>
+    <height use_class="true">50</height>
+    <line_width use_class="true">0</line_width>
+    <line_color>
+      <color red="128" green="0" blue="255">
+      </color>
+    </line_color>
+    <background_color use_class="true">
+      <color name="PRIMARY-HEADER-BACKGROUND" red="151" green="188" blue="202">
       </color>
     </background_color>
+    <actions>
+    </actions>
+    <tooltip>$(pv_name)
+$(pv_value)</tooltip>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #9</name>
+    <name>Label</name>
+    <class>TITLE</class>
     <text>$(P)$(R)</text>
-    <y>2</y>
-    <width>260</width>
-    <height>16</height>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
+    <x use_class="true">20</x>
+    <y use_class="true">0</y>
+    <width>280</width>
+    <height use_class="true">50</height>
+    <font use_class="true">
+      <font name="Header 1" family="Source Sans Pro" style="BOLD_ITALIC" size="36.0">
       </font>
     </font>
-    <horizontal_alignment>1</horizontal_alignment>
+    <foreground_color use_class="true">
+      <color name="HEADER-TEXT" red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
+    <transparent use_class="true">true</transparent>
+    <horizontal_alignment use_class="true">0</horizontal_alignment>
+    <vertical_alignment use_class="true">1</vertical_alignment>
+    <wrap_words use_class="true">false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #12</name>
+    <name>Label</name>
     <text>Supported</text>
-    <x>148</x>
-    <y>25</y>
+    <x>145</x>
+    <y>79</y>
     <width>90</width>
     <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
+      <font family="Sans" style="REGULAR" size="10.891089108910892">
       </font>
     </font>
     <foreground_color>
       <color red="51" green="153" blue="0">
       </color>
     </foreground_color>
-    <auto_size>true</auto_size>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
     <rules>
-      <rule name="vis_if_not_zero" prop_id="visible" out_exp="false">
+      <rule name="Visibility" prop_id="visible" out_exp="false">
+        <exp bool_exp="pv0!=0">
+          <value>true</value>
+        </exp>
         <exp bool_exp="!(pv0!=0)">
           <value>false</value>
         </exp>
         <pv_name>$(P)$(R).OPTIONIV</pv_name>
       </rule>
     </rules>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #16</name>
+    <name>Label</name>
     <text>Unsupported</text>
-    <x>138</x>
-    <y>25</y>
+    <x>145</x>
+    <y>79</y>
     <width>110</width>
     <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
+      <font family="Sans" style="REGULAR" size="10.891089108910892">
       </font>
     </font>
     <foreground_color>
       <color red="222" green="19" blue="9">
       </color>
     </foreground_color>
-    <auto_size>true</auto_size>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
     <rules>
-      <rule name="vis_if_zero" prop_id="visible" out_exp="false">
+      <rule name="Visibility" prop_id="visible" out_exp="false">
+        <exp bool_exp="pv0==0">
+          <value>true</value>
+        </exp>
         <exp bool_exp="!(pv0==0)">
           <value>false</value>
         </exp>
         <pv_name>$(P)$(R).OPTIONIV</pv_name>
       </rule>
     </rules>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #20</name>
+    <name>Label</name>
     <text>asynOption:</text>
-    <x>8</x>
-    <y>25</y>
+    <x>20</x>
+    <y>79</y>
     <width>110</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
-    <auto_size>true</auto_size>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
+    <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #23</name>
+    <name>Label</name>
     <text>Baud rate:</text>
-    <x>43</x>
-    <y>51</y>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <x>40</x>
+    <y>105</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #26</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).BAUD</pv_name>
-    <x>150</x>
-    <y>51</y>
+    <x>147</x>
+    <y>105</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #29</name>
+    <name>Label</name>
     <text>Baud rate:</text>
-    <x>43</x>
-    <y>76</y>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <x>40</x>
+    <y>130</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #32</name>
+    <name>Label</name>
     <text>Data bits:</text>
-    <x>43</x>
-    <y>101</y>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <x>40</x>
+    <y>155</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #35</name>
+    <name>Label</name>
     <text>Stop bits:</text>
-    <x>43</x>
-    <y>126</y>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <x>40</x>
+    <y>180</y>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #38</name>
+    <name>Label</name>
     <text>Modem control:</text>
-    <x>3</x>
-    <y>176</y>
+    <y>230</y>
     <width>140</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #41</name>
+    <name>Label</name>
     <text>Parity:</text>
-    <x>73</x>
-    <y>151</y>
+    <x>70</x>
+    <y>205</y>
     <width>70</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #44</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).DBIT</pv_name>
-    <x>150</x>
-    <y>101</y>
+    <x>147</x>
+    <y>155</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #47</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).SBIT</pv_name>
-    <x>150</x>
-    <y>126</y>
+    <x>147</x>
+    <y>180</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #50</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).PRTY</pv_name>
-    <x>150</x>
-    <y>151</y>
+    <x>147</x>
+    <y>205</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #53</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).MCTL</pv_name>
-    <x>150</x>
-    <y>176</y>
+    <x>147</x>
+    <y>230</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #56</name>
+    <name>Label</name>
     <text>Flow control:</text>
-    <x>13</x>
-    <y>201</y>
+    <x>10</x>
+    <y>255</y>
     <width>130</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #59</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).FCTL</pv_name>
-    <x>150</x>
-    <y>201</y>
+    <x>147</x>
+    <y>255</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #62</name>
+    <name>Label</name>
     <text>XOFF output:</text>
-    <x>23</x>
-    <y>226</y>
+    <x>20</x>
+    <y>280</y>
     <width>120</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #65</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).IXON</pv_name>
-    <x>150</x>
-    <y>226</y>
+    <x>147</x>
+    <y>280</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #68</name>
+    <name>Label</name>
     <text>XOFF input:</text>
-    <x>33</x>
-    <y>251</y>
+    <x>30</x>
+    <y>305</y>
     <width>110</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #71</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).IXOFF</pv_name>
-    <x>150</x>
-    <y>251</y>
+    <x>147</x>
+    <y>305</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="label" version="2.0.0">
-    <name>text #74</name>
+    <name>Label</name>
     <text>XON=any:</text>
-    <x>63</x>
-    <y>276</y>
+    <x>60</x>
+    <y>330</y>
     <width>80</width>
-    <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
-      </font>
-    </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
+    <background_color>
+      <color red="255" green="255" blue="255">
+      </color>
+    </background_color>
     <horizontal_alignment>2</horizontal_alignment>
+    <vertical_alignment>1</vertical_alignment>
+    <wrap_words>false</wrap_words>
+    <actions>
+    </actions>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
   <widget type="combo" version="2.0.0">
-    <name>menu #77</name>
+    <name>Menu Button</name>
     <pv_name>$(P)$(R).IXANY</pv_name>
-    <x>150</x>
-    <y>276</y>
+    <x>147</x>
+    <y>330</y>
     <width>102</width>
     <height>20</height>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
   </widget>
   <widget type="textentry" version="3.0.0">
-    <name>text entry #80</name>
+    <name>Text Input</name>
     <pv_name>$(P)$(R).LBAUD</pv_name>
-    <x>150</x>
-    <y>76</y>
+    <x>147</x>
+    <y>130</y>
     <width>102</width>
     <height>18</height>
     <font>
-      <font family="Liberation Sans" style="REGULAR" size="16.0">
+      <font family="Sans" style="REGULAR" size="10.891089108910892">
       </font>
     </font>
+    <foreground_color>
+      <color red="0" green="0" blue="0">
+      </color>
+    </foreground_color>
     <background_color>
-      <color red="115" green="223" blue="255">
+      <color name="BLACK-TEXT" red="255" green="255" blue="255">
       </color>
     </background_color>
     <format>1</format>
     <show_units>false</show_units>
+    <actions>
+    </actions>
     <border_alarm_sensitive>false</border_alarm_sensitive>
+    <border_color>
+      <color red="0" green="128" blue="255">
+      </color>
+    </border_color>
   </widget>
 </display>
-- 
GitLab