diff --git a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob index aa01b8ec8f339d46493f53661760b8d8a7546650..899dd1b958f915ad5a17c82fc6461494c60f3c11 100644 --- a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob +++ b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/cabtr_te.bob @@ -272,12 +272,30 @@ <horizontal_alignment>2</horizontal_alignment> <vertical_alignment>1</vertical_alignment> </widget> - <widget type="textentry" version="3.0.0"> + <widget type="combo" version="2.0.0"> <name>CurveFileS</name> <pv_name>$(DEVICE):CurveFileS</pv_name> <x>126</x> <y>300</y> <width>150</width> + <height>20</height> + <background_color> + <color name="Write_Background" red="224" green="217" blue="202"> + </color> + </background_color> + <actions> + <action type="write_pv"> + <pv_name>$(CONTROLLER):CalibRereadCmd</pv_name> + <value>1</value> + <description>Reread calibration files list</description> + </action> + </actions> + <scripts> + <script file="fill_calib_files.py"> + <pv_name>$(CONTROLLER):CalibFiles-RB</pv_name> + </script> + </scripts> + <items_from_pv>false</items_from_pv> </widget> <widget type="textupdate" version="2.0.0"> <name>CurveFile-RB</name> diff --git a/NON-APPROVED/TS2/ts2-cryomodule/cabtr/fill_calib_files.py b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/fill_calib_files.py new file mode 100644 index 0000000000000000000000000000000000000000..89474e1547a762f19160e0250dbbc10c2838c341 --- /dev/null +++ b/NON-APPROVED/TS2/ts2-cryomodule/cabtr/fill_calib_files.py @@ -0,0 +1,8 @@ +from org.csstudio.display.builder.runtime.script import PVUtil +import java.util.ArrayList as ArrayList + +items = PVUtil.getStringArray(pvs[0]) +arraylist = ArrayList(len(items)) +for item in items: + arraylist.add(item) +widget.setItems(arraylist)