(form "01120" (size 74 21)
  (heading "AUTOPLOT PRESENTATION PARAMETERS")

  /*
  ** ----------------------------------
  ** Standard plotting setup parameters
  ** ----------------------------------
  */
  (field "outputPrefix" (position 16  3) (display_length 20) (input allowed) (max_length 256))

  (field "fit" (position 10  1) (display_length  10) (input allowed)
    (null disallowed) (max_length 5)
    (auto_next off)
    (value_in "Fit to Screen" "Manual Scale" "Selection Box")
    (default "Manual Scale"))
    
    
  (field "autogroup" (position 10  1) (display_length  10) (input allowed)
    (null disallowed) (max_length 5)
    (auto_next off)
    (value_in "Yes" "No")
    (default "Yes"))

  (field "minscale" (position 10  1) (display_length  10) (input allowed)
    (low_bound 0.00) (high_bound 999999999)
    (translate upper) (format real_8) (null allowed) (max_length 32))

  (field "uniform_scale" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No") (default "No") (null disallowed) (max_length 4))
  
  (field "xscale" (position 6  2) (display_length  8) (input allowed)
    (dependency (value "fit") == "Manual Scale")
    (low_bound 0.01) (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 10))

  (field "yscale" (position 23  2) (display_length  8) (input allowed)
    (dependency (value "fit") == "Manual Scale")
    (high_bound 999999999)
    (translate upper) (format real_8) (null disallowed) (max_length 10))

  (field "sheet" (position 15  5) (display_length  17) (input allowed)
    (null disallowed) (max_length 32))

  (field "orient" (position 15  6) (display_length  17) (input allowed)
    (null disallowed) (max_length 32)
    (value_in "Landscape" "Portrait")
    (default "Landscape"))

  (field "drawsp" (position 15  7) (display_length  17) (input allowed)
    (null disallowed) (max_length 32) (translate upper))

  (field "grid" (position 15 8) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))
    
  (field "border_id" (position 15  9) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))

  (field "title" (position 15 10) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))

  (field "unit" (position 15 11) (display_length  12) (input allowed)
    (value_in "M" "I"
      [default "Metric" "Imperial"])
    (default "M")
    (null disallowed) (max_length 12))

  (field "xref_label" (position 1  13) (display_length  2) 
    (background) (default "X"))

  (field "xref"(position 4  13)(display_length  8)(input allowed)
    (format real_8)(null allowed)(max_length 10))

  (field "yref_label" (position 18  14) (display_length  2) 
    (background) (default "Y"))
  (field "yref" (position 21  14) (display_length  8) (input allowed)
    (format real_8)(null allowed)(max_length 10))

  (field "include_plan_strip" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No") (default "No") (null disallowed) (max_length 4))
  (field "plan_draw" (position 15  7) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))
  (field "plan_position" (position 10  1) (display_length  10) (input allowed)
    (null allowed) (max_length 5)
    (auto_next off)
    (value_in "top" "bottom")
    (default "top"))
  (field "display_section_line" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No") (default "No") (null disallowed) (max_length 4))
  (field "plan_grid" (position 15 8) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))
  (field "plan_xgli" (position 15 8) (display_length  17) (input allowed)
    (low_bound 0.0) (high_bound 999999999)
    (format real_8) (null allowed) (max_length 32) (translate upper))
  (field "plan_ygli" (position 15 8) (display_length  17) (input allowed)
    (low_bound 0.0) (high_bound 999999999)
    (format real_8) (null allowed) (max_length 32) (translate upper))
  (field "plan_xline" (position 15 8) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))
  (field "plan_yline" (position 15 8) (display_length  17) (input allowed)
    (null allowed) (max_length 32) (translate upper))

    
  (field "include_note" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No")
    (default "No")
    (null disallowed) (max_length 4))
  (field "note_file" (position 50 16) (display_length  12) (input allowed)
    (file(extension trim "*.not"))
    (null allowed) (max_length 256))

  (field "note_entity" (position 50 17) (display_length  12) (input allowed)
    (null allowed) (max_length 256)
    (translate upper))

  (field "note_corner" (position 50 18) (display_length  6) (input allowed)
    (value_in "LL" "UL" "LR" "UR")
    (default "UL")
    (null allowed) (max_length 4))

  (field "create_batched_sections" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No") (default "No") (null disallowed) (max_length 4))
  (field "extra_section_count" (position 50 18) (display_length  6) (input allowed)
    (format integer_4) (default "0") (null allowed) (max_length 5))
  (field "reverse_section_direction" (position 50 15) (display_length  2) (input allowed)
    (value_in "Yes" "No") (default "No") (null disallowed) (max_length 12))
  (field "section_ref_corner_source" (position 15 8) (display_length  17) (input allowed)
    (value_in "Relative" "String file") (default "Relative") (max_length 32) (translate none))
  (field "section_ref_corner_string" (position 15 8) (display_length  17) (input allowed)
    (max_length 256) (translate none))
    
  (field "image_plot" (position 50 18) (display_length  6) (input allowed)
    (value_in "Yes" "No")
    (default "No")
    (null disallowed) (max_length 4))
  (field "dpi" (position 50 18) (display_length  6) (input allowed)
    (format integer_4)
    (default "100")
    (null disallowed) (max_length 5))

  (scroll_block "legendElements" (position 5 8) (size 48 5)
    (extra 0 1)
    (scroll_size 48 100)
    (repeat (grow 0 1) (instances 0 (min 0) (max 100)))
    (top
    )  
    (main
      (field "include_legend" (position 1 0) (display_length 10) (input allowed)
        (max_length 3) (null disallowed) (default "no")
       )

      (field "legend_name" (position 13 0) (display_length 10) 
        (input allowed)
        (max_length 100) (null allowed)
      )
        
      (field "x_position" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
      (field "y_position" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
      (field "nelements" (position 13 0) (display_length 10) (input disallowed)
        (max_length 10) (null allowed)
      )
      (field "ncolumns" (position 13 0) (display_length 10) (input disallowed)
        (max_length 10) (null allowed)
      )
      (field "nrows" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
    )
  )
  (scroll_block "legendElementsImg" (position 5 8) (size 48 5)
    (extra 0 1)
    (scroll_size 48 100)
    (repeat (grow 0 1) (instances 0 (min 0) (max 100)))
    (top
    )  
    (main
      (field "include_legendImg" (position 1 0) (display_length 10) (input allowed)
        (max_length 3) (null disallowed) (default "no")
       )

      (field "legend_nameImg" (position 13 0) (display_length 10) 
        (input allowed)
        (max_length 100) (null allowed)
      )
        
      (field "x_positionImg" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
      (field "y_positionImg" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
      (field "nelementsImg" (position 13 0) (display_length 10) (input disallowed)
        (max_length 10) (null allowed)
      )
      (field "ncolumnsImg" (position 13 0) (display_length 10) (input disallowed)
        (max_length 10) (null allowed)
      )
      (field "nrowsImg" (position 13 0) (display_length 10) (input allowed)
        (max_length 10) (null allowed)
      )
    )
  )
  
  (field "font" (position 15  3) (display_length 4) (input allowed)
    (null allowed) (max_length 70))
  (field "bold_font" (position 15  3) (display_length 2) (input allowed))
  (field "italic_font" (position 15 3) (display_length 2) (input allowed))
  (field "underline_font" (position 15 3) (display_length 2) (input allowed))
  
  (field "height" (position 15 4) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0.2")
    (low_bound 0.05) (decimals 2)
  )
  (field "legend_item_height" (position 15 4) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "1.0")
    (low_bound 0.05) (decimals 2)
  )
  (field "legend_margin" (position 15 4) (display_length 5) (input allowed)
    (max_length 10) (null disallowed) (format real_8) (default "0.25")
    (low_bound 0.05) (decimals 2)
  )

  (scroll_block "planesToPlot" (position  10  4) (size 35 7)
    (extra  0  1)

    (repeat interactive (grow  0  1) (instances 1 (min  1) (max 200)))

    (top
    )

    (main
      (field "plane"
        (position  8 0) (display_length 10) (input disallowed)
        (null disallowed) (max_length 256)
      )
      (field "plot_plane" (position 20 0) (display_length 11)
        (input allowed)
        (null disallowed)
        (max_length 3)
        (default "yes")
      )
    )
  )

  (default_buttons)
)
