(form "70000" (size 55 18)

  (heading "DEFINE RIG PARAMETERS"  )

  (label (position  2 3) (text "Rig name"))
  (field "name"
    (position 16 3) (display_length 15) (input allowed)
    (null disallowed) (max_length 20)
    )

  (label (position  2 4) (text "Rig width"))
  (field "rig_width"
    (position 21 4) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    )

  (label (position  2 5) (text "Max hole length"))
  (field "max_hole_length"
    (position 21 5) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    )

  (label (position  2 5) (text "Min hole length"))
  (field "min_hole_length"
    (position 21 5) (display_length 10) (input allowed) (low_bound 0.2)
    (format real_8) (null disallowed) (max_length 16)
    )    

  (label (position  2 6) (text "Rod length"))
  (field "rod_length"
    (position 21 6) (display_length 10) (input allowed)
    (format real_8) (low_bound 0.0)
    (null disallowed) (max_length 16)
    )

  (label (position  2 8) (text "Carousel:"))
  (label (position  2 9) (text "length"))
  (field "carousel_length"
    (position 21 9) (display_length 10) (input allowed)
    (low_bound 0.0)
    (format real_8) (null disallowed) (max_length 16)
    )

  (label (position  2 10) (text "left width"))
  (field "carousel_width_l"
    (position 21 10) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  2 11) (text "right width"))
  (field "carousel_width_r"
    (position 21 11) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  2 12) (text "bit distance"))
  (field "mast_sharp"
    (position 21 12) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  2 13) (text "feed distance"))
  (field "mast_blunt"
    (position 21 13) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  2 14) (text "feed - pivot dist"))
  (field "pivot_blunt"
    (position 21 14) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (field "pivot_offset"
    (position 21 15) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
  )

  (label (position  33 3) (text "Pivot:"))

  (label (position  33 4) (text "min height"))
  (field "pivot_min"
    (position 42 4) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  33 5) (text "max height"))
  (field "pivot_max"
    (position 42 5) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  33 6) (text "lateral"))
  (field "pivot_mvt"
    (position 42 6) (display_length 10) (input allowed)
    (format real_8) (null disallowed) (max_length 16)
    (low_bound 0.0)
    )

  (label (position  33 8) (text "Angle definition method:"))

  (field "method"
    (position 33 9) (display_length 20) (input allowed)
    (value_in "360 degrees"
              "180 degrees"
              "dip and dip direction"
    )
    (null disallowed)
    (max_length 22) (default "360 degrees")
    )

  (field "origin_label"
    (position 33 10) (display_length 4)
    (foreground)
    (background (user_option "form_background"))
    (input disallowed) (max_length 5) 
    (default "origin")
    (dependency (value "method") != "dip and dip direction")
  )

  (field "origin"
    (position 39 10) (display_length 4) (input allowed)
    (value_in "up" "down" "left" "right")
    (null disallowed)
    (max_length 6) (default "up")
    (dependency (value "method") != "dip and dip direction")
    )

  (default_buttons)
)
