(form "01129" (size 57 15)
  (heading "SINGLE HOLE PARAMETERS")

  (label
    (position 2 3)
    (text "Collar Elevation")
    )
  (field "collar_el"
    (position 12 3)
    (display_length 12)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (value_in "Fixed" "Selected Point" "DTM layer" "DTM file")
    (default "Fixed")
    )
  (field "fixed_label"
    (position 2 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "Fixed")
    (input disallowed)
    (default "Elevation")
    )
  (field "fixed_el"
    (position 12 4)
    (display_length 8)
    (max_length 20)
    (dependency(value "collar_el") == "Fixed")
    (format real_8)
    (input allowed)
    )

  (field "layer_label"
    (position 2 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM layer")
    (input disallowed)
    (default "Layer Name")
    )
  (field "layer_name"
    (position 12 4)
    (display_length 13)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (auto_next off)
    (input allowed)
    )

  (field "file_location_label"
    (position 2 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Location")
    )
  (field "file_location"
    (position 12 4)
    (display_length 10)
    (max_length 50)
    (dependency(value "collar_el") == "DTM file")
    (file(link "file_id")(extension "*.dtm"))
    (input allowed)
    )

  (field "file_id_label"
    (position 2 5)
    (display_length 2)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Id")
    )
  (field "file_id"
    (position 12 5)
    (display_length 10)
    (dependency(value "collar_el") == "DTM file")
    (input allowed)
    )

  (field "visible_label"
    (position 2 6)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "DTM file")
    (input disallowed)
    (default "Make Visible?")
    )
  (field "visible"
    (position 12 6)
    (display_length 3)
    (dependency(value "collar_el") == "DTM file")
    (input allowed)
    (value_in "Yes" "No")
    (default "No")
    )


  (label
    (position 28 3)
    (text "Hole Length")
    )
  (field "hole_length"
    (position 38 3)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (value_in "Set Length" "Set Elevation" "DTM layer" "DTM file" "Set to Segment" "Selected Point")
    (default "Set Length")
    )
  (field "set_length_label"
    (position 28 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set Length")
    (input disallowed)
    (default "Hole Length")
    )
  (field "set_length"
    (position 38 4)
    (display_length 8)
    (max_length 20)
    (low_bound 0.001)
    (dependency(value "hole_length") == "Set Length")
    (format real_8)
    (input allowed)
    )

  (field "segment_offset_label"
    (position 28 4)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set to Segment")
    (input disallowed)
    (default "Segment Offset")
    )
  (field "segment_offset"
    (position 40 4)
    (display_length 8)
    (max_length 20)
    (low_bound 0)
    (dependency(value "hole_length") == "Set to Segment")
    (format real_8)
    (input allowed)
    (default "0")
    )
  (field "Segment_fix_label"
    (position 28 5)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set to Segment")
    (input disallowed)
    (default "Fix Value")
    )
  (field "segment_fix"
    (position 40 5)
    (display_length 8)
    (max_length 20)
    (dependency(value "hole_length") == "Set to Segment")
    (input allowed)
    (value_in "Bearing" "Offset")
    (default "Bearing")
    )

  (field "set_el_label"
    (position 28 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set Elevation")
    (input disallowed)
    (default "Elevation")
    )
  (field "set_el"
    (position 38 4)
    (display_length 8)
    (max_length 20)
    (dependency(value "hole_length") == "Set Elevation")
    (format real_8)
    (input allowed)
    )

  (field "length_layer_label"
    (position 28 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM layer")
    (input disallowed)
    (default "Layer Name")
    )
  (field "length_layer_name"
    (position 38 4)
    (display_length 13)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (auto_next off)
    (dependency(value "hole_length") == "DTM layer")
    (input allowed)
    )

  (field "length_location_label"
    (position 28 4)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Location")
    )
  (field "length_file_location"
    (position 38 4)
    (display_length 10)
    (max_length 50)
    (dependency(value "hole_length") == "DTM file")
    (file(link "length_file_id")(extension "*.dtm"))
    (input allowed)
    )

  (field "length_id_label"
    (position 28 5)
    (display_length 2)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Id")
    )
  (field "length_file_id"
    (position 38 5)
    (display_length 10)
    (dependency(value "hole_length") == "DTM file")
    (input allowed)
    )

  (field "length_visible_label"
    (position 28 6)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "DTM file")
    (input disallowed)
    (default "Make Visible?")
    )
  (field "length_visible"
    (position 38 6)
    (display_length 3)
    (dependency(value "hole_length") == "DTM file")
    (input allowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (label
    (position 2 8)
    (text "Hole Bearing")
    )
  (field "bearing"
    (position 12 8)
    (display_length 8)
    (dependency(value "hole_length") != "Selected Point")
    (max_length 20)
    (format decimal_angle)
    (low_bound 0)
    (high_bound 6.283185307)
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (label
    (position  2 9)
    (text "Hole Dip")
    )
  (field "dip"
    (position 12 9)
    (display_length 6)
    (max_length 20)
    (low_bound -1.570796327)
    (high_bound 0)
    (format decimal_angle)
    (dependency(value "hole_length") != "Set to Segment||Selected Point")
    (input allowed)
    (null disallowed)
    (default "-90")
    )
  (label
    (position  2 10)
    (text "Hole Diameter")
    )
  (field "diameter"
    (position 12 10)
    (display_length 6)
    (max_length 20)
    (low_bound 0)
    (format real_8)
    (input allowed)
    (null disallowed)
    )


  (label
    (position 2 11)
    (text "Pattern Identifier")
    )
  (field "pattern_id"
    (position 12 11)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null disallowed)
    )

  (label
    (position 25 8)
    (text "Hole ID Prefix")
    )
  (field "prefix"
    (position 35 8)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null allowed)
    )

  (label
    (position 25 9)
    (text "Hole ID Suffix")
    )
  (field "suffix"
    (position 35 9)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null allowed)
    )

  (label
    (position 25 10)
    (text "Starting Value")
    )
  (field "start"
    (position 35 10)
    (display_length 8)
    (max_length 20)
    (format integer_4)
    (input allowed)
    (null disallowed)
    (default "1")
    )

  (label
    (position 25 11)
    (text "Pad Hole_Id")
    )
  (field "pad_check"
    (position 37 11)
    (display_length 2)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "Yes")
    )

  (field "pad_length_label"
    (position 25 12)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Length")
    )
  (field "pad_length"
    (position 37 12)
    (display_length 2)
    (max_length 20)
    (format integer_4)
    (low_bound 1)
    (dependency(value "pad_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "5")
    )

  (field "pad_char_label"
    (position 25 13)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Character")
    )
    
  (field "rmc"
    (position 25 13)
    (display_length 10)
    (max_length 30)
    (input allowed)
    (null allowed)
    ) 
    
  (field "pad_char"
    (position 37 13)
    (display_length 2)
    (max_length 1)
    (dependency(value "pad_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (field "subdrill"
    (position 12 17)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    )

  (field "rig"
    (position 12 19)
    (display_length 8)
    (max_length 20)
    (input allowed)
    )

  (default_buttons)
)
