!
! The menus for scs data 
!

define widget tseries-imet-fields intmenu 'TSeries Fields'
	title 'Select Two Fields'
	line
	entry 'Temperature' 'toggle_field imet_temp' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_temp"))
	entry 'RH' 'toggle_field imet_rh' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rh"))
	entry 'True Wind Speed2' 'toggle_field imet_twspd2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twspd2"))
	entry 'True Wind Dir2' 'toggle_field imet_twdir2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twdir2"))
	entry 'True Wind Speed1' 'toggle_field imet_twspd1' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twspd1"))
	entry 'True Wind Dir1' 'toggle_field imet_twdir1' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twdir1"))
	entry 'IMET Rain' 'toggle_field imet_rain' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rain"))
	entry 'IMET Short Wave' 'toggle_field imet_swr' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_swr"))
endmenu

define widget tseries-ocean-fields intmenu 'TSeries Fields'
	title 'Select Two Fields'
	line
	entry 'SST' 'toggle_field sst' \
	   (substring(pd_param(icon_component, "field", "string"),"sst"))
	entry 'Salinity' 'toggle_field salinity' \
	   (substring(pd_param(icon_component, "field", "string"),"salinity"))
	entry 'Depth' 'toggle_field depth' \
	   (substring(pd_param(icon_component, "field", "string"),"depth"))
	entry 'IMET Pressure' 'toggle_field imet_press' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_press"))
endmenu

define widget tseries-pcode-fields intmenu 'TSeries Fields'
	title 'Select Two Fields'
	line
	entry 'Course over Ground' 'toggle_field cog' \
	   (substring(pd_param(icon_component, "field", "string"),"cog"))
	entry 'Speed over Ground' 'toggle_field sog' \
	   (substring(pd_param(icon_component, "field", "string"),"sog"))
	entry 'Latitude' 'toggle_field lat' \
	   (substring(pd_param(icon_component, "field", "string"),"lat"))
	entry 'Longitude' 'toggle_field lon' \
	   (substring(pd_param(icon_component, "field", "string"),"lon"))
endmenu

! have to have all the fields in one menu
define widget tseries-scs-fields intmenu 'TSeries Fields'
	title 'Select Two Fields'
	line	
	entry 'Temperature' 'toggle_field imet_temp' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_temp"))
	entry 'RH' 'toggle_field imet_rh' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rh"))
	entry 'True Wind Speed2' 'toggle_field imet_twspd2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twspd2"))
	entry 'True Wind Dir2' 'toggle_field imet_twdir2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_twdir2"))
	entry 'Relative Wind Speed2' 'toggle_field imet_rwspd2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rwspd2"))
	entry 'Relative Wind Dir2' 'toggle_field imet_rwdir2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rwdir2"))
!	entry 'True Wind Speed1' 'toggle_field imet_twspd1' \
!	   (substring(pd_param(icon_component, "field", "string"),"imet_twspd1"))
!	entry 'True Wind Dir1' 'toggle_field imet_twdir1' \
!	   (substring(pd_param(icon_component, "field", "string"),"imet_twdir1"))
	entry 'IMET Rain' 'toggle_field imet_rain' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_rain"))
	entry 'IMET Short Wave' 'toggle_field imet_swr' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_swr"))
!	entry 'old IMET Pressure' 'toggle_field imet_press' \
!	   (substring(pd_param(icon_component, "field", "string"),"imet_press"))
	entry 'Pressure' 'toggle_field press' \
	   (substring(pd_param(icon_component, "field", "string"),"press"))
	line
	entry 'SST' 'toggle_field sst' \
	   (substring(pd_param(icon_component, "field", "string"),"sst"))
	entry 'Salinity' 'toggle_field salinity' \
	   (substring(pd_param(icon_component, "field", "string"),"salinity"))
	entry 'Conductivity' 'toggle_field conductivity' \
	   (substring(pd_param(icon_component, "field", "string"),"conductivity"))
	entry 'Depth' 'toggle_field bathy_depth' \
	   (substring(pd_param(icon_component, "field", "string"),"bathy_depth"))
	entry 'CO2 Fluoro' 'toggle_field fluoro_value' \
	   (substring(pd_param(icon_component, "field", "string"),"fluoro_value"))
	line
	entry 'Course over Ground' 'toggle_field cog' \
	   (substring(pd_param(icon_component, "field", "string"),"cog"))
	entry 'Speed over Ground' 'toggle_field sog' \
	   (substring(pd_param(icon_component, "field", "string"),"sog"))
	entry 'Latitude' 'toggle_field lat' \
	   (substring(pd_param(icon_component, "field", "string"),"lat"))
	entry 'Longitude' 'toggle_field lon' \
	   (substring(pd_param(icon_component, "field", "string"),"lon"))
	line
!	entry 'old Optical Rain Gauge 03 port (rain rate)' 'toggle_field org5_03p' \
!	   (substring(pd_param(icon_component, "field", "string"),"org5_03p"))
	entry 'Optical Rain Gauge 03 port (rain rate)' 'toggle_field org5_03p' \
	   (substring(pd_param(icon_component, "field", "string"),"org5_03p"))
	entry 'Optical Rain Gauge whs (rain rate)' 'toggle_field org9_whs' \
	   (substring(pd_param(icon_component, "field", "string"),"org9_whs"))
	line
	entry 'Siphon Rain Gauge 02 stbd (accum)' 'toggle_field srg1_02s' \
	   (substring(pd_param(icon_component, "field", "string"),"srg1_02s"))
	entry 'Siphon Rain Gauge 02 port (accum)' 'toggle_field srg2_02p' \
	   (substring(pd_param(icon_component, "field", "string"),"srg2_02p"))
	entry 'Siphon Rain Gauge 03 stbd (accum)' 'toggle_field srg3_03s' \
	   (substring(pd_param(icon_component, "field", "string"),"srg3_03s"))
	entry 'Siphon Rain Gauge 03 port (accum)' 'toggle_field srg4_03p' \
	   (substring(pd_param(icon_component, "field", "string"),"srg4_03p"))
	entry 'Siphon Rain Gauge 05 stbd (accum)' 'toggle_field srg6_05s' \
	   (substring(pd_param(icon_component, "field", "string"),"srg6_05s"))
	entry 'Siphon Rain Gauge 05 port (accum)' 'toggle_field srg7_05p' \
	   (substring(pd_param(icon_component, "field", "string"),"srg7_05p"))
	entry 'Siphon Rain Gauge whs (accum)' 'toggle_field srg8_whs' \
	   (substring(pd_param(icon_component, "field", "string"),"srg8_whs"))
	line
	entry 'Precip Temp 1' 'toggle_field imet_ptemp1' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_ptemp1"))
	entry 'Precip Temp 2' 'toggle_field imet_ptemp2' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_ptemp2"))
	entry 'Precip Temp 3' 'toggle_field imet_ptemp3' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_ptemp3"))
	entry 'Precip Temp 4' 'toggle_field imet_ptemp4' \
	   (substring(pd_param(icon_component, "field", "string"),"imet_ptemp4"))
	line
	entry 'JW distrometer Rainrate' 'toggle_field jw_R' \
	   (substring(pd_param(icon_component, "field", "string"),"jw_R"))
	entry 'JW distrometer dBZ' 'toggle_field jw_dBZ' \
	   (substring(pd_param(icon_component, "field", "string"),"jw_dBZ"))
	endmenu


define widget rhb-field intmenu 'RHBrown fields'
	title "RHBrown Color Code Track"
	line
	entry 'Temperature' 'fldset "imet_temp"' \
		(pd_param(icon_component, "field", "string") = "imet_temp")
	entry 'Relative Humidity' 'fldset "imet_rh"' \
		(pd_param(icon_component, "field", "string") = "imet_rh")
	entry 'Short Wave Radiation' 'fldset "imet_swr"' \
		(pd_param(icon_component, "field", "string") = "imet_swr")
	entry 'True Wind Speed' 'fldset "imet_twspd2"' \
		(pd_param(icon_component, "field", "string") = "imet_twspd2")
	entry 'True Wind Direction' 'fldset "imet_twdir2"' \
		(pd_param(icon_component, "field", "string") = "imet_twdir2")
	entry 'Pressure' 'fldset "press"' \
		(pd_param(icon_component, "field", "string") = "press")
	entry 'SST' 'fldset "sst"' \
		(pd_param(icon_component, "field", "string") = "sst")
	entry 'Speed Over Ground' 'fldset "sog"' \
		(pd_param(icon_component, "field", "string") = "sog")
	entry 'Optical Rain Gauge 03 port' 'fldset "org5_d03p"' \
		(pd_param(icon_component, "field", "string") = "org5_d03p")
	entry 'Optical Rain Gauge whs' 'fldset "org5_whs"' \
		(pd_param(icon_component, "field", "string") = "org5_whs")
	line
	entry 'Color Code by Field?' 'toggle_color_code' \
		(pd_param (icon_component, "field", "string") <> "(Undefined)")
!	entry 'Wind arrows?' 'toggle_bool "arrow" "true"' \
!		(pd_param (icon_component, "arrow", "string") = "true") 
	line
	entry 'Show Boat?' 'toggle_bool "show-position" "true"' \
		(pd_param (icon_component, "show-position", "string") = "true") 
endmenu