(form "00605" (size 42 10)
  (heading "STRING FILE CLEAN UP")

  (label  (position 2 3) (text "Function")
  )
  (label (position 2 4) (text "Action")
  )
  (field "label3" (position 2 5) (display_length 7)
    (foreground) (background) (max_length 8) 
    (value_in "Target")
    (browser none) (default "Target")
    (dependency (value "operation") != "Closure")
  )

  (label (position 2 7) (text "Measure distances and angles in"))
  (label (position 35 7) (text "space"))

  (field "operation"
    (position 16 3) (display_length 15) (input allowed)
    (value_in "Closure"
              "Cross-overs"
              "Duplicate Point"
              "Duplicate Segment"              
              "Minimum Area"
              "Minimum Points"              
              "Spikes")
    (null allowed) (max_length 26) (default "Duplicate Point")
    )

  (field "dup_segs_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "remove")
    (translate lower) (null disallowed) (max_length 26) (default "mark")
    (dependency (value "operation") == "Duplicate Segment")
    )

  (field "dup_segs_target" (position 16 5) (display_length 8) (input allowed)
    (value_in "layer" "string")
    (null allowed) (max_length 26) (default "layer")
    (dependency (value "operation") == "Duplicate Segment")
    )

  (field "dup_segs_dist" (position 16 6) (display_length 8) (input allowed)
    (low_bound 0) (high_bound 99999999)
    (format real_8) (null disallowed) (max_length 8) (default "0.0")
    (dependency (value "operation") == "Duplicate Segment")
    )

  (field "dup_segs_arg_label" (position 2 6) (display_length 14)
    (foreground) (background) (max_length 12)
    (value_in "Trap distance")
    (browser none) (default "Trap distance")
    (dependency (value "operation") == "Duplicate Segment")
  )

  (field "dup_pnts_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "remove" "warn")
    (translate lower) (null disallowed) (max_length 26) (default "mark")
    (dependency (value "operation") == "Duplicate Point")
    )

  (field "dup_pnts_target" (position 16 5) (display_length 8) (input allowed)
    (value_in "layer" "string" "segment")
    (null allowed) (max_length 26) (default "layer")
    (dependency (value "operation") == "Duplicate Point")
    )

  (field "dup_pnts_dist_min" (position 16 6) (display_length 8) (input allowed)
    (low_bound 0) (high_bound 99999999)
    (format real_8) (null disallowed) (max_length 8) (default "0.0")
    (dependency (value "operation") == "Duplicate Point")
    )

  (field "dup_pnts_dist" (position 16 6) (display_length 8) (input allowed)
    (low_bound 0) (high_bound 99999999)
    (format real_8) (null disallowed) (max_length 8) (default "0.0")
    (dependency (value "operation") == "Duplicate Point")
    )

  (field "dup_pnts_arg_label" (position 2 6) (display_length 14)
    (foreground) (background) (max_length 12)
    (browser none) (default "Maximum trap distance")
    (dependency (value "operation") == "Duplicate Point")
  )

  (field "cross_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "warn")
    (translate lower) (null disallowed) (max_length 26) (default "mark")
    (dependency (value "operation") == "Cross-overs")
    )

  (field "cross_target" (position 16 5) (display_length 8) (input allowed)
    (value_in "layer" "string" "segment")
    (null allowed) (max_length 26) (default "layer")
    (dependency (value "operation") == "Cross-overs")
    )

  (field "cross_arg" (position 16 6) (display_length 8) (input allowed)
    (value_in "breakline" "all")
    (translate lower) (null disallowed) (max_length 9) (default "all")
    (dependency (value "operation") == "Cross-overs")
    )

  (field "cross_arg_label" (position 2 6) (display_length 11)
    (foreground) (background) (max_length 8)
    (value_in "Cross-over type" )
    (browser none) (default "Cross-over type")
    (dependency (value "operation") == "Cross-overs")
  )

  (field "spike_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "remove" "warn")
    (translate lower) (null disallowed) (max_length 26)
    (default "mark")
    (dependency (value "operation") == "Spikes")
    )

  (field "spike_target" (position 16 5) (display_length 8) 
    (background) (browser none)
    (value_in "segment" ) 
    (null allowed) (max_length 26) (default "segment")
    (dependency (value "operation") == "Spikes")
    )

  (field "spike_angle" (position 16 6) (display_length 8) (input allowed)
    (low_bound 0.0) (high_bound 1.570796326795)
    (format decimal_angle) (null disallowed) (max_length 7) (default "5.0")
    (dependency (value "operation") == "Spikes")
    )

  (field "spike_arg_label" (position 2 6) (display_length 11)
    (foreground) (background) (max_length 8)
    (value_in "Trap angle" )
    (browser none) (default "Trap angle")
    (dependency (value "operation") == "Spikes")
  )

  (field "angle_units" (position 26 6) (display_length 8)
    (foreground (user_option "form_foreground"))
    (background) (max_length 10) 
    (value_in "DEGREES")
    (default "DEGREES")
    (dependency (value "operation") == "Spikes")
    )

  (field "min_pnts_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "remove" "warn")
    (translate lower) (null disallowed) (max_length 26)
    (default "mark")
    (dependency (value "operation") == "Minimum Points")
    )

  (field "min_pnts_target" (position 16 5) (display_length 8) 
    (background)
    (value_in "segment" ) 
    (browser none)
    (null allowed) (max_length 26) (default "segment")
    (dependency (value "operation") == "Minimum Points")
    )

  (field "min_pnts" (position 16 6) (display_length 8) (input allowed)
    (low_bound 1) (high_bound 99999999)
    (format integer_4) (null disallowed) (max_length 5) (default "1")
    (dependency (value "operation") == "Minimum Points")
    )

  (field "minpts_arg_label" (position 2 6) (display_length 11)
    (foreground) (background) (max_length 8)
    (value_in "Minimum points" )
    (browser none) (default "Minimum points")
    (dependency (value "operation") == "Minimum Points")
  )

  (field "min_area_action" (position 16 4) (display_length 8) (input allowed)
    (value_in "mark" "remove" "warn")
    (translate lower) (null disallowed) (max_length 26)
    (default "mark")
    (dependency (value "operation") == "Minimum Area")
    )

  (field "min_area_target" (position 16 5) (display_length 8) 
    (background)
    (value_in "segment" ) 
    (browser none)
    (null allowed) (max_length 26) (default "segment")
    (dependency (value "operation") == "Minimum Area")
    )

  (field "min_area" (position 16 6) (display_length 8) (input allowed)
    (low_bound -99999999) (high_bound 99999999)
    (format real_8) (null disallowed) (max_length 8) (default "0.0")
    (dependency (value "operation") == "Minimum Area")
    )

  (field "minarea_arg_label" (position 2 6) (display_length 11)
    (foreground) (background) (max_length 8)
    (value_in "Minimum area" )
    (browser none) (default "Minimum area")
    (dependency (value "operation") == "Minimum Area")
  )

  (field "absolute" (position 26 6) (display_length 8) (input allowed)
    (value_in "absolute" "signed")
    (null disallowed) (max_length 8) (default "absolute")
    (dependency (value "operation") == "Minimum Area")
    )

  (field "closure" (position 16 4) (display_length 8) (input allowed)
    (value_in "allow all" "close all" "delete open" "open all")
     
    (translate lower) (null disallowed) (max_length 11) (default "allow all")
    (dependency (value "operation") == "Closure")
    )

  (field "dimension" (position 28 7) (display_length 2) (input allowed)
    (value_in "2D" "3D")
    (null disallowed) (max_length 2) (default "2D")
    )
    
  (field "markerColour" (position 16 5) (display_length 15) (input allowed)
    (format colour) (translate lower)  (max_length 80) (default "red")
  )

  (field "plane" (position 16 7) (display_length 2) (input allowed)
    (value_in "plan" "current" "best fit")
    (null disallowed) (max_length 8) (default "plan")
  )

  (field "activate_plane" (position 16 8) (display_length  1) (input allowed)
	(value_in "Y" "N")
	(default "N") (translate upper) (null disallowed) (max_length 1)
  )
  (default_buttons)
)
