(form"01125"(size 57 22)
  (heading "BLAST PATTERN DESIGN")

  (field "x"
    (position 10 3)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )
  (field "y"
    (position 10 4)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

  (field "height"
    (position 32 3)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )
  (field "width"
    (position 32 4)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (input allowed)
    (null disallowed)
    )
  (field "angle"
    (position 32 5)
    (display_length 6)
    (max_length 20)
    (format decimal_angle)
    (input allowed)
    (null disallowed)
    )

  (field "geometry"
    (position 8 7)
    (display_length 12)
    (max_length 12)
    (null disallowed)
    (input allowed)
    (value_in "Staggered" "Rectangular")
    (default "Rectangular")
    )

  (field "order"
    (position 8 8)
    (display_length 12)
    (max_length 12)
    (null disallowed)
    (input allowed)
    (value_in "Regular" "Zig-Zag")
    (default "Regular")
    )

  (field "autoburden"
    (position 8 8)
    (display_length 12)
    (max_length 12)
    (null disallowed)
    (input allowed)
    )

  (field "classfield"
    (position 8 8)
    (display_length 12)
    (max_length 12)
    (dependency(value "autoburden") == "true")
    (null disallowed)
    (input allowed)
    )

  (scroll_block "rockclasses" (position 8 12) (size 35 8)
    (extra 0 1)
    (scroll_size 35 20)
    (repeat interactive (grow 0 1) (instances 1 (min 1) (max 20)))
    (main
      (field "rockClass" (position 15 0) (display_length 16)
        (input allowed) (max_length 30))
      (field "rockBurden" (position 15 0) (display_length 16)
        (input allowed) (max_length 20))
      (field "rockSpacing" (position 15 0) (display_length 16)
        (input allowed) (max_length 20))
      (field "rockSubdrill" (position 15 0) (display_length 16)
        (input allowed) (max_length 20))
    )
  )

  (field "rmc"
    (position 12 19)
    (display_length 10)
    (max_length 30)
    (input allowed)
    (null allowed) 
    ) 

  (field "size_method"
    (position 35 7)
    (display_length 16)
    (max_length 20)
    (null disallowed)
    (input allowed)
    (value_in "Burden and Spacing" "Number of holes")
    (default "Burden and Spacing")
    )
  
  (field "burden_inp_label"
    (position 25 8)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Burden")
    )
  (field "burden_inp"
    (position 30 8)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (decimals 5)
    (null allowed)
    (input allowed)
    )

  (field "spacing_inp_label"
    (position 39 8)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Spacing")
    )
  (field "spacing_inp"
    (position 45 8)
    (display_length 6)
    (max_length 20)
    (format real_8)
    (decimals 5)
    (null allowed)
    (input allowed)
    )

  (field "no_rows_display_label"
    (position 25 9)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "No. Rows")
    )
  (field "rows_display"
    (position 32 9)
    (display_length 4)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 10)
    (format integer_4)
    (input disallowed)
    (null allowed)
    )
  (field "no_cols_display_label"
    (position 39 9)
    (display_length 10)
    (background(user_option "form_background"))
    (input disallowed)
    (default "No. Columns")
    )
  (field "columns_display"
    (position 47 9)
    (display_length 4)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 10)
    (format integer_4)
    (input disallowed)
    (null allowed)
    )

  (field "burden_display_label"
    (position 25 9)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Burden")
    )
  (field "burden_display"
    (position 31 9)
    (display_length 6)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 20)
    (format real_8)
    (decimals 5)
    (input disallowed)
    (null disallowed)
    )

  (field "spacing_display_label"
    (position 39 9)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "Spacing")
    )
  (field "spacing_display"
    (position 45 9)
    (display_length 6)
    (background(user_option "form_background"))
    (foreground (user_option "form_text_highlight"))
    (max_length 20)
    (format real_8)
    (decimals 5)
    (input disallowed)
    (null disallowed)
    )

  (field "no_rows_inp_label"
    (position 25 8)
    (display_length 6)
    (background(user_option "form_background"))
    (input disallowed)
    (default "No. Rows")
    )
  (field "rows_inp"
    (position 32 8)
    (display_length 4)
    (max_length 10)
    (format integer_4)
    (input allowed)
    (null allowed)
    )
  (field "no_cols_inp_label"
    (position 39 8)
    (display_length 8)
    (background(user_option "form_background"))
    (input disallowed)
    (default "No. Columns")
    )
  (field "columns_inp"
    (position 48 8)
    (display_length 4)
    (max_length 10)
    (format integer_4)
    (input allowed)
    (null allowed)
    )
  
  (field "collar_el"
    (position 12 10)
    (display_length 10)
    (input allowed)
    (null disallowed)
    (auto_next off)
    (value_in "Fixed" "DTM layer" "DTM file")
    (default "Fixed")
    )
  (field "fixed_label"
    (position 2 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "collar_el") == "Fixed")
    (input disallowed)
    (default "Elevation")
    )
  (field "fixed_el"
    (position 12 11)
    (display_length 8)
    (max_length 20)
    (dependency(value "collar_el") == "Fixed")
    (format real_8)
    (input allowed)
    (null disallowed)
    )

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

  (field "object_id_lay_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_lay_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

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

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

  (field "object_id_top"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM file")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_top"
    (position 12 13)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "collar_el") == "DTM file")
    (format integer_4)
    (input allowed)
    )

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

  (label
    (position 28 10)
    (text "Hole Length")
    )
  (field "hole_length"
    (position 38 10)
    (display_length 10)
    (max_length 20)
    (input allowed)
    (null disallowed)
    (null disallowed)
    (value_in "Set Length" "Set Elevation" "DTM layer" "DTM file")
    (default "Set Length")
    )

  (field "set_length_label"
    (position 28 11)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "hole_length") == "Set Length")
    (input disallowed)
    (default "Hole Length")
    )
  (field "set_length"
    (position 38 11)
    (display_length 8)
    (max_length 20)
    (low_bound 0.001)
    (dependency(value "hole_length") == "Set Length")
    (format real_8)
    (input allowed)
    (null disallowed)
    )

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

  (field "length_layer_label"
    (position 28 11)
    (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 11)
    (display_length 13)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (auto_next off)
    (dependency(value "hole_length") == "DTM layer")
    (input allowed)
    (null disallowed)
    )

  (field "object_id_lay_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_lay_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM layer")
    (format integer_4)
    (input allowed)
    )

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

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

  (field "object_id_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM file")
    (format integer_4)
    (input allowed)
    )

  (field "trisolation_id_bot"
    (position 12 12)
    (display_length 5)
    (max_length "APP_MAX_LAYER_NAME_LENGTH")
    (dependency(value "hole_length") == "DTM file")
    (format integer_4)
    (input allowed)
    )

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

  (label
    (position 2 15)
    (text "Hole Bearing")
    )
  (field "bearing"
    (position 12 15)
    (display_length 8)
    (max_length 20)
    (format decimal_angle)
    (high_bound 6.283185307)
    (low_bound 0)
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (label
    (position  2 16)
    (text "Hole Dip")
    )
  (field "dip"
    (position 12 16)
    (display_length 6)
    (max_length 20)
    (low_bound -1.570796327)
    (high_bound 0)
    (format decimal_angle)
    (input allowed)
    (null disallowed)
    (default "-90")
    )

  (label
    (position  2 17)
    (text "Hole Diameter")
    )
  (field "diameter"
    (position 12 17)
    (display_length 6)
    (max_length 20)
    (low_bound 0)
    (format real_8)
    (input allowed)
    (null disallowed)
    )

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

  (field "clip"
    (position 12 18)
    (display_length 3)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

  (field "pattern_id"
    (position 12 19)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null disallowed)
    )

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

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

  (field "ground_water_level"
    (position 12 19)
    (display_length 8)
    (max_length 20)
    (format real_8)
    (input allowed)
    (default "0")
    )

  (label
    (position 25 15)
    (text "Hole ID Prefix")
    )
  (field "prefix"
    (position 35 15)
    (display_length 8)
    (max_length 20)
    (input allowed)
    (null allowed)
    )
  (field "class_prefix_check"
    (position 37 18)
    (display_length 2)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )

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

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

  (label
    (position 25 18)
    (text "Sequence Rows")
    )
  (field "row_check"
    (position 37 18)
    (display_length 2)
    (max_length 5)
    (input allowed)
    (null disallowed)
    (value_in "Yes" "No")
    (default "No")
    )
  (label
    (position 25 19)
    (text "Row Increment")
    )
  (field "row_increment"
    (position 35 19)
    (display_length 8)
    (max_length 20)
    (format integer_4)
    (dependency(value "row_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "100")
    )

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

  (field "pad_length_label"
    (position 25 21)
    (display_length 8)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Length")
    )
  (field "pad_length"
    (position 37 21)
    (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 22)
    (display_length 10)
    (background(user_option "form_background"))
    (dependency(value "pad_check") == "Yes")
    (input disallowed)
    (default "Pad Character")
    )
  (field "pad_char"
    (position 37 22)
    (display_length 2)
    (max_length 1)
    (dependency(value "pad_check") == "Yes")
    (input allowed)
    (null disallowed)
    (default "0")
    )

  (default_buttons)
)
