(form "00915" (size 75  21)
  (heading "SETTINGS")
  
  /*
  ** Display text options
  */
  (label (position 43  6)
    (text "Display text fonts")
  )

  (label (position 43  7)
    (text "Function text")
  )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                      MESSAGE OPTIONS
  **                      ---------------
  */

  /*
  ** Message language
  */
  (field "buffer_size" (position 3  7) (display_length 6) (input allowed)
    (translate none) (max_length 4)(format integer_4)
      )    

  (label (position  4  6)
    (text "Language")
  )

  (field "language" (position 19  6) (display_length 20) (input allowed)
    (translate none) (null allowed) (max_length 32)
    (default "default")
    (value_in "default" "german" "french" "russian" "spanish" "chinese"
             [default "English" "German" "French" "Russian" "Spanish" "Chinese"])
      )

  (field "default_type" (position 19  7) (display_length 10) (input allowed)
    (translate none) (null allowed) (max_length 20)
    (default "Application")
    (value_in "Application" "Last_value" "Last_value_if_blank"
     [default "Application" "Last value" "Last value if blank"])
    )

  (field "formfield_help_colour" (position 19 8) (display_length 10) (input allowed)
    (translate lower)  (max_length 80)

    (default "blue")
    (format colour)
      )

  (field "formfield_help_size" (position 19  9) (display_length 2) (input allowed)
    (translate none) (null disallowed) (max_length 2)
    (default "4")
    (value_in "2" "3" "4" "5" "6" "7" "8")
    )

  /*
  ** logging of messages
  */
  (label (position  4 10)
    (text "Message logging options")
  )

  (label (position  4 11)
    (text "Log messages to file")
  )

  (field "logging" (position 19 11) (display_length 2) (input allowed)
    (translate none)(max_length 2)

    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])
      )

  (label (position  4 12)
    (text "Log file")
  )

  (field "logfile" (position 19 12) (display_length 20) (input allowed)
    (translate none) (null allowed)
    (file)

    (default "ssi.log" /* DON'T TRANSLATE! */)
      )

  /*
  ** message reporting level
  */
  (label (position  4 14)
    (text "Message reporting level")
  )

  (label (position  4 15)
    (text "Display debug messages")
  )

  (field "display_debug_message" (position 21 15) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])
      )

  (field "display_normal_debug_message" (position 21 15) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])
      )

  (field "display_debug" (position 21 15) (display_length 2) (input allowed)
    (translate none)  (max_length 10)
  )
  (field "display_informational" (position 21 15) (display_length 2) (input allowed)
    (translate none)  (max_length 10)
  )
  (field "display_warning" (position 21 15) (display_length 2) (input allowed)
    (translate none)  (max_length 10)
  )

  (label (position  4 16)
    (text "Display warning messages")
  )

  (field "display_warning_messages" (position 21 16) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])
      )
  /*
  ** number of bells
  */

  (label (position  48  5)
    (text "Number of bells to sound")
  )

  (label (position 48  6)
    (text "For warnings")
  )

  (field "display_bells_on_warning" (position 63 6) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

    (format integer_4)
    (low_bound 0) (high_bound 10)
    (default "1")
      )

  /*
  ** ------------------------------------------------------------------------
  ** 
  **                         GRAPHICS
  **                         --------
  */

  /*
  ** Graphics display options
  */
  (label (position  3  5)
    (text "Graphics display options")
  )

  (label (position 3  6)
    (text "Automatic hidden surface removal")
  )

  (field "hidden_surface_removal" (position 24  6) (display_length 2) (input allowed)
    (max_length 2)

    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])
      )

  (label (position 3  7)
    (text "Hidden surface removal algorithm")
  )

  (field "hsr_algorithm" 
    (position 24   7)
    (display_length 13)
    (input allowed)
    (translate lower)
    (max_length 20)

    (default "software z-buffer")
    (value_in "painters" "software z-buffer" "hardware z-buffer")
      )

    (field "display" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60)

    (default "msw/window0")
    (value_in "msw/window0" "opengl/window0" "opengl2/window0" "direct3d/window0")
      )

    (field "auto_settings" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60))

    (field "backface_culling" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60))
    (field "processorAffinity" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60) (null disallowed))
    (field "display_lists" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60))
    (field "double_buffering" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60))
    (field "show_shadow" (position 24 8 ) (display_length 15) (input allowed)
    (translate none)  (max_length 60))
  /*
  ** Grid options
  */
  (label (position  3  9)
    (text "Grid display options")
  )

  (label (position 6 10)
    (text "Grid colour")
  )

  (field "grid_colour" (position 19 10) (display_length 15) (input allowed)
    (translate upper)  (max_length 80)

    (format colour)
    (default "red")
      )

  (label (position 6 11)
    (text "Grid label font size")
  )
  (field "grid_label_size" (position 19  11) (display_length 10) (input allowed)
    (translate lower)  (max_length 20)

    (default "0.02 sru" /* DON'T TRANSLATE! */)
      )  
  
  (field "viewer_speed_factor" (position 19  11) (display_length 5) (input allowed)
    (translate lower)  (max_length 5) (format real_8)
    (default "2.0")
  )  

  (field "greeking_limit" (position 19  11) (display_length 5) (input allowed)
    (max_length 5)
  )  

  (field "mouse_left" (position 19  11) (display_length 5) (input allowed)
    (max_length 50)
   )
  (field "mouse_right" (position 19  11) (display_length 5) (input allowed)
    (max_length 50)
   )
  (field "mouse_middle" (position 19  11) (display_length 5) (input allowed)
    (max_length 50)
   )
  (field "mouse_wheel" (position 19  11) (display_length 5) (input allowed)
    (max_length 50)
   )

  (field "brightness" (position 19  11) (display_length 5) (input allowed)
    (max_length 10)
   )
  
  (field "show_cutting_planes" (position 19  11) (display_length 5) (input allowed)
    (max_length 64)
   )
  (field "cutting_plane_colour" (position 19  11) (display_length 5) (input allowed)
    (max_length 64) (format colour)  
   )
  (field "show_cutting_plane_edges" (position 19  11) (display_length 5) (input allowed)
    (max_length 64)
   )
  (field "cut_faces" (position 19  11) (display_length 5) (input allowed)
    (max_length 64)
   )
  (field "cut_face_colour" (position 19  11) (display_length 5) (input allowed)
    (max_length 64) (format colour)
   )
  (field "cut_edges" (position 19  11) (display_length 5) (input allowed)
    (max_length 64)
   )
  (field "cut_edge_colour" (position 19  11) (display_length 5) (input allowed)
    (max_length 64) (format colour)
   )
  (field "interactive_mouse" (position 19  11) (display_length 5) (input allowed)
    (max_length 64)
   )


  (field "viewer_axes" (position 19  11) (display_length 3) (input allowed)
    (translate lower)  (max_length 3) 

    (default "on")
  )  
  
  /** @deprecated replaced by viewer_axes_location */
  (field "viewer_axes_xpos" (position 19  11) (display_length 5) (input allowed)
    (translate lower)  (max_length 5) (format real_8)
    (low_bound -1.0) (high_bound 1.0)
  )  
  
  /** @deprecated replaced by viewer_axes_location */
  (field "viewer_axes_ypos" (position 19  11) (display_length 5) (input allowed)
    (translate lower)  (max_length 5) (format real_8)
    (low_bound -1.0) (high_bound 1.0)
  )  
  
  /** @deprecated */
  (field "viewer_axes_length" (position 19  11) (display_length 5) (input allowed)
    (translate lower)  (max_length 5) (format real_8)
    (low_bound 0.01) (high_bound 0.5)
  )  
  
  /** @deprecated */
  (field "viewer_axes_width" (position 19  11) (display_length 5) (input allowed)
    (max_length 5) (format real_8)
    (low_bound 0.0001) (high_bound 0.2)
  )  
  
  (field "viewer_axes_location"
	(position 19 11) (display_length 15) (input allowed)
    (default "bottom_left")
    (value_in "bottom_left" "bottom_right" "top_left" "top_right"
    [default "Bottom-Left" "Bottom-Right" "Top-Left" "Top-Right"])
  )
  
  (field "viewer_axes_xcolour" (position 19  11) (display_length 5) (input allowed)
    (format colour)  (max_length 64) (translate lower)
  )  
  
  (field "viewer_axes_ycolour" (position 19  11) (display_length 5) (input allowed)
    (format colour)  (max_length 64) (translate lower)
  )  
  
  (field "viewer_axes_zcolour" (position 19  11) (display_length 5) (input allowed)
    (format colour)  (max_length 64) (translate lower)
  )  

  (field "activate_lod_DTM" (position 19  11) (display_length 3) (input allowed)
    (max_length 3) (default "off")
  )  

  (field "activate_lod_BM" (position 19  11) (display_length 3) (input allowed)
    (max_length 3) (default "off")
  )  

  (field "lod_level" (position 19  11) (display_length 5) (input allowed)
    (max_length 64) (value_in "1" "2" "3" "4" "5" "6" "7" "8")
    (default "8") (format real_8) (null disallowed)
  )

  (field "lod_ratio" (position 19  11) (display_length 6) (input allowed)
    (max_length 16) (value_in non_exclusive "0.10" "0.20" "0.25" "0.30" "0.40" "0.50" "0.60" "0.70" "0.75" "0.80" "0.90")
    (low_bound 0.0) (high_bound 1.0)
    (default "0.75") (format real_8) (null disallowed)
  )  

  /*
  ** Graphics background
  */
  (label (position 41  5)
    (text "Viewport options")
  )
  (label (position 41  6)
    (text "Colour")
  )
  (field "graphics_background" (position 47  6) (display_length 25) (input allowed)
    (format colour) (translate lower)  (max_length 60)
  )
  (field "graphics_text" (position 47  6) (display_length 25) (input allowed)
    (format colour) (translate lower)  (max_length 60)
  )

  (field "graphics_background_top_3D" (position 47  6) (display_length 25) (input allowed)
    (format colour) (translate lower)  (max_length 60)
  )
  (field "graphics_background_bottom_3D" (position 47  6) (display_length 25) (input allowed)
    (format colour)(translate lower)  (max_length 60)
  )
  (field "graphics_text_3D" (position 47  6) (display_length 25) (input allowed)
    (format colour)(translate lower)  (max_length 60)
  )

  /*
  ** Graphics workspace
  */
  (label (position 41  8)
    (text "Workspace options")
  )
  (label (position 41  9)
    (text "Colour")
  )
  (field "graphics_workspace_colour" (position 48  9) (display_length 15) (input allowed)
    (translate lower)  (max_length 80)

    (default "black")
    (format colour)
      )

  /*
  ** Rubberband colour
  */
  (label (position  41 11)
    (text "Rubberband")
  )
  (label (position 41 12)
    (text "Colour")
  )
  (field "rubber_band_colour" (position 48  12) (display_length 15) (input allowed)
    (translate lower)  (max_length 80)

    (default "black")
    (format colour)
      )

  /*
  ** User working options
  */
  (label (position  41 14)
    (text "User preferences")
  )
  (label (position 41 15)
    (text "Maximum undo operations")
  )

  (field "default_font" (position 60  15) (display_length 4) (input allowed)
    (null allowed)
    (max_length 50)
   )

  (field "default_fixed_font" (position 60  15) (display_length 4) (input allowed)
    (null allowed)
    (max_length 50)
   )

  (field "use_hidden_surface_with_rubberband" (position 60  15) (display_length 4) (input allowed)
    (max_length 3)
   )

  (field "maximum_undo_operations" (position 60  15) (display_length 4) (input allowed)
    (translate lower)  (max_length 4)

    (default "10")
    (format integer_4)
    (high_bound 50)
      )
  (label (position 41 16)
    (text "Clear undo buffer on recall file")
  )
  (field "undo_purge_on_recall" (position 60 16) (display_length 2) (input allowed)
    (translate none) (max_length 2)
    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])

      )    
  (label (position 41 17)
    (text "Viewport default view mode")
  )
  (field "view_default_mode" (position 60  17) (display_length 11) (input allowed)
    (translate lower)  (max_length 20)

    (default "rotate")
    (value_in "constrained dolly" "constrained rotate" "constrained scale"
              "rotate" "dolly" "pan" "orbit dolly zoom" "zorbit dolly zoom" 
              "orbit dolly in/out zoom" "zorbit dolly in/out zoom" "none" 
              /* DON'T TRANSLATE! */)
      )
  (label (position 41 18)
    (text "WINDOW IN user mode")
  )
  (field "window_in_method" (position 60  18) (display_length 11) (input allowed)
    (translate lower)  (max_length 20)

    (default "centre to corner")
    (value_in "centre to corner" "corner to corner" /* DON'T TRANSLATE! */)
      )
  (field "view3D" (position 24  22) (display_length 3) (input allowed)
    (translate upper) (null disallowed) (max_length 5)
    (value_in "3D" "2D")
  )

  (field "viewport_controls" (position 60 19) (display_length 2) (input allowed)
    (translate none) (max_length 3)
    (default "on")
    (value_in "on" "off")  
  )    

  (field "useSpotLight" (position 24 7) (display_length 2) (input allowed)
    (max_length 2)
    (default "Y")
    (value_in "Y" "N")
  )

  (field "illumination_cone" (position 24  8) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.1) (high_bound 180)
    (format real_8)
  )

  (field "sharpness_cone" (position 24  9) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.1) (high_bound 180)
    (format real_8)
  )

  (field "spot_colour" (position 24  10) (display_length 16) (input allowed)
    (format colour) (dependency (value "useSpotLight") == "Y") 
    (null disallowed) (max_length 128)
  )

  (field "offset_angle" (position 24  11) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.0) (high_bound 45)
    (format real_8)
  )

  (field "useDirectionalLights" (position 24 12) (display_length 2) (input allowed)
    (max_length 2)
    (default "on")
    (value_in "on" "off")
  )

  (label (position  2  13) (text "Light"))
  (label (position  3  14) (text "1"))
  (label (position  3  15) (text "2"))
  (label (position  3  16) (text "3"))
  
  (label (position  8  3) (text "Y"))
  (field "light_y1" (position  8  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3)
  )


  (label (position 18  13) (text "X"))
  (field "light_x1" (position 18  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (label (position 28  13) (text "Z"))
  (field "light_z1" (position 28  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (label (position 38  13) (text "Colour"))
  (field "light_colour1" (position 38  14) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on") 
    (null allowed) (max_length 32))
  
  (field "light_y2" (position  8  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_x2" (position 18  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_z2" (position 28  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_colour2" (position 38  15) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on")
    (null allowed) (max_length 32))
  
  (field "light_y3" (position  8  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_x3" (position 18  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_z3" (position 28  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_colour3" (position 38  16) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on") 
    (null allowed) (max_length 32))

  (field "rendering" (position 24  21) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "N" "G" "P")
  )

  (field "edgesDisplay" (position 24  22) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "Y" "N")
  )

  (field "edgesLighting" (position 24  23) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "Y" "N")
  )

  (field "blockModelEdgesDisplay" (position 24 22) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "Y" "N")
  )

  /*
  ** ------------------------------------------------------------------------
  ** 
  **                         ADVANCED COLOURS
  **                         ----------------
  */

  /*
  ** Title bar background colour
  */
  (label (position 2  5)
    (text "Viewport decoration")
  )
  (label (position 4  6)
    (text "Title bar background colour")
  )
  (label (position 4  7)
    (text "Active viewport")
  )
  (field "active_viewport_title_colour" (position 18  7) (display_length 15) (input allowed)
    (max_length 80)
    (default "light blue")
    (format colour)
      )
  (label (position 4  8)
    (text "Inactive viewport")
  )
  (field "inactive_viewport_title_colour" (position 18  8) (display_length 15) (input allowed)
    (max_length 80)

    (default "dark silver")
    (format colour)
      )

  /*
  ** Title bar text colour
  */
  (label (position 4 10)
    (text "Title bar text colour")
  )
  (label (position 4 11)
    (text "Open viewports")
  )
  (field "open_viewport_title_text_colour" (position 18 11) (display_length 15) (input allowed)
    (max_length 80)

    (default "white")
    (format colour)
      )
  (label (position 4 12)
    (text "Closed viewports")
  )
  (field "close_viewport_title_text_colour" (position 18 12) (display_length 15) (input allowed)
    (max_length 80)

    (default "black")
    (format colour)
      )

  /*
  ** Title bar icon colours
  */
  (label (position 4 14)
    (text "Icon colours")
  )
  (label (position 4 15)
    (text "Title bar icons")
  )
  (field "title_icons_colour" (position 18 15) (display_length 15) (input allowed)
    (max_length 80)

    (default "black")
    (format colour)
      )
  (label (position 4 16)
    (text "Resize icon")
  )
  (field "resize_icon_colour" (position 18 16) (display_length 15) (input allowed)
    (max_length 80)

    (default "black")
    (format colour)
      )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                         PLOTTING
  **                         --------
  */

  /*
  ** Plotter
  */
  (label (position  3  6)
    (text "Plotter")
  )
  (label (position 3  7)
    (text "Default plotter")
  )
  (field "default_plotter" (position 17  7) (display_length 15) (input allowed)
    (translate upper)  (max_length 20)

    (default "WINDOWS")
    (value_in non_exclusive   "BENSON" "BENSON1625" "CALCOMP" "DMP29"
                              "DMP41" "DMP42" "DMP56" "DXY880" "DXY980"
                              "GP9101" "HIT673" "HIT675" "HPDPRO" "HPDM1"
                              "HPDM2" "HP7221" "HP7475" "HP7550" "HP7580"
                              "HP7585" "LVP16" "MP1000" "MP2000" "OCI928"
                              "TAXAN" "WX4731" "ZETA" "HP650C" "HP1200C"
                              "GENERIC_HPGL2" "WINDOWS" /*DON'T TRANSLATE! */)
      )
  (label (position 3  8)
    (text "System plot command")
  )
  (field "plot_command" (position 17  8) (display_length 20) (input allowed)
    (max_length 256)

    (default "windows")
    (value_in non_exclusive "windows"
                            "cmd.exe /c copy !AS com1:" "command.com /c copy !AS com1:"
                            "lpr -Pssi_plot_queue -#1 -h -l !AS" "lp -d ssi_plot_queue !AS"
                            /* DON'T TRANSLATE! */)
      )

  (field "plotting_windows_font" (position 60  15) (display_length 4) (input allowed)
    (max_length 50)
   )

  /*
  ** Plotting files
  */
  (label (position  3 10)
    (text "Plotting files")
  )
  (label (position 3 11)
    (text "Pattern file")
  )
  (field "pattern_file" (position 17 11) (display_length 20) (input allowed)
    (max_length 256)

    (default "SSI_PLOTTING:patterns.ssi" /* DON'T TRANSLATE! */)
    (file)
      )
  (label (position 3 12)
    (text "Palette/pen file")
  )
  (field "pen_file" (position 17 12) (display_length 20) (input allowed)
    (max_length 256)

    (default "SSI_PLOTTING:plotting.pen" /* DON'T TRANSLATE! */)
    (file)
      )

  (label (position  42  6)
    (text "Default plot editor")
  )

  (field "plot_editor" (position 17  8) (display_length 20) (input allowed)
    (max_length 256)

    (default "draftsight")
    (value_in exclusive "draftsight"
                        "surpac")
  )

  /*
  ** Plot preview
  */
  (label (position  42  6)
    (text "Plot preview")
  )
  (label (position 42  7)
    (text "Background colour")
  )
  (field "plot_preview_background_colour" (position 42  8) (display_length 25) (input allowed)
    (translate lower)  (max_length 60)

    (value_in non_exclusive "white,window contrast=black,text=black"
                            "black,window contrast=white,text=black"
                            "apricot,window contrast=light grey,text=light grey"
                            /* DON'T TRANSLATE! */)
      )
  (label (position 42 10)
    (text "Rubberband colour")
  )
  (field "plot_preview_rubberband_colour" (position 56 10) (display_length 11) (input allowed)
    (translate lower)  (max_length 80)

    (default "red")
    (format colour)
      )
  (label (position 42 11)
    (text "Thickness adjustment")
  )
  (field "plot_preview_thickness_adjustment" (position 56 11) (display_length 10) (input allowed)
    (translate lower)  (max_length 30)

    (default "1.5")
    (format real_8)
      )

  (field "plot_preview_font" (position 60  15) (display_length 4) (input allowed)
    (max_length 50)
   )

  /*
  ** Plotting advertisement
  */
  (label (position  3 14)
    (text "Plotting advertisement")
  )
  (label (position  3 15)
    (text "Text string")
  )

  (field "plotting_advertisement" (position 17 15) (display_length 20) (input allowed)
    (max_length 32)

    (default "Surpac Minex Group")
      )


  /*
  ** -----------------
  ** Autoplot defaults
  ** -----------------
  */
  (label (position  42  13)
    (text "Autoplot Defaults")
  )

  (label (position  42 14)
    (text "Action")
  )

  (field "autoplot_action" (position 56 14) (display_length 15) (input allowed)
    (max_length 32) (null disallowed)

    (value_in "Plot Preview" "Plot Driver" "None")
    (default "Plot Preview")
      )

  (label (position  42 15)
    (text "Lookup File")
  )

  (field "autoplot_lookup" (position 56 15) (display_length 15) (input allowed)
    (max_length 32)

    (file)
    (default "SSI_STYLES:dholes.ssi")
      )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                      Coordinate System/Units
  **                      -----------------------
  */


  /*
  ** World quadrant
  */
  (label (position 3  5)
    (text "world quadrant")
  )
  (field "world_quadrant" (position 20  5) (display_length 3) (input allowed)
    (translate upper)  (max_length 3)

    (default "NE")
    /*
    ** Do NOT translate
    */
    (value_in "NE" "NW" "SE" "SW")
      )

  /*
  ** Measure options
  */
  (label (position  3  7)
    (text "Measurement options")
  )
  (label (position 3  8)
    (text "Distance units")
  )
  (field "distance_units" (position 20  8) (display_length 10) (input allowed)
    (max_length 10)

    (default "METRIC")
    (value_in "METRIC" "IMPERIAL"
     [default "metric" "imperial"])
      )
  (label (position 3  9)
    (text "Angle units")
  )
  (field "angle_units" (position 20   9) (display_length 10) (input allowed)
    (max_length 10)

    (default "DEGREES")
    (value_in "DEGREES" "GRADS"
     [default "degrees" "grads"])
      )
  (label (position 3 10)
    (text "Grade units")
  )
  (field "grade_units" (position 20  10) (display_length 15) (input allowed)
    (translate lower)  (max_length 15)

    (default "percentage")
    (value_in "percentage" "ratio" "angle"
     [default "percentage" "\"1 in x\" ratio" "angle"])
      )
  (label (position 3 11)
    (text "Mass units")
  )
  (field "mass_units" (position 20  11) (display_length 15) (input allowed)
    (max_length 15)

    (default "TONNES"
             [default "tonnes"])
      )

  /*
  ** Scale factor
  */
  (label (position 3 13)
    (text "Scale factor")
  )
  (field "scale_factor" (position 20  13) (display_length 15) (input allowed)
    (translate lower)  (max_length 30)

    (default "1.0")
    (format real_8)
     (decimals 6)
      )

  /*
  ** Label options
  */
  (label (position  39  7)
    (text "Axis label names")
  )
  (label (position 39  8)
    (text "Reference axis")
  )
  (field "ref_label" (position 54  8) (display_length 15) (input allowed)
    (max_length 20)

    (default "NORTHING")
      )
  (label (position 39  9)
    (text "axis abbreviation")
  )
  (field "ref_abrev" (position 54  9) (display_length 10) (input allowed)
    (translate upper)  (max_length 10)

    (default "N" /* As in (N)ORTHING */)
      (help (field "ref_label")
      )
  )
  (label (position 39 10)
    (text "Non-reference axis")
  )
  (field "non_ref_label" (position 54  10) (display_length 15) (input allowed)
    (max_length 20)

    (default "ELEVATION")
      (help (field "ref_label")
      )
  )
  (label (position 39 11)
    (text "axis abbreviation")
  )
  (field "non_ref_abrev" (position 54  11) (display_length 10) (input allowed)
    (translate upper)  (max_length 10)

    (default "E" /* As in (E)ASTING */)
      (help (field "ref_label")
      )
  )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                       ALIAS FILES
  **                       -----------
  */

  /*
  ** Alias files
  */
  (label (position  6  4)
    (text "Alias files")
  )
  (label (position 6  5)
    (text "Alias one")
  )
  (field "alias1" (position 20  5) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      )
  (label (position 6  6)
    (text "Alias two")
  )
  (field "alias2" (position 20  6) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6  7)
    (text "Alias three")
  )
  (field "alias3" (position 20  7) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6  8)
    (text "Alias four")
  )
  (field "alias4" (position 20  8) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6  9)
    (text "Alias five")
  )
  (field "alias5" (position 20  9) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6 10)
    (text "Alias six")
  )
  (field "alias6" (position 20 10) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6 11)
    (text "Alias seven")
  )
  (field "alias7" (position 20 11) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6 12)
    (text "Alias eight")
  )
  (field "alias8" (position 20 12) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )
  (label (position 6 13)
    (text "Alias nine")
  )
  (field "alias9" (position 20 13) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      (help (field "alias1")
      )
  )

  /*
  ** keymaps file
  */
  (label (position 6 15)
    (text "Keymaps file")
  )
  (field "keymaps" (position 20 15) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "SSI_ETC:keymaps.ssi")
      )

  /*
  ** logicals file
  */
  (label (position 6 17)
    (text "Logicals file")
  )
  (field "logicals" (position 20 17) (display_length 40) (input allowed)
    (max_length 256)

    (file) (default "")
      )

  /*
  ** ------------------------------------------------------------------------
  ** 
  **                       EXTERNAL TOOLS
  **                       --------------
  */

  /*
  ** Operating System Shell
  */
  (label (position  7  5)
    (text "Operating System")
  )
  (label (position 7  6)
    (text "Shell command")
  )
  (field "os_shell" (position 22  6) (display_length 20) (input allowed)
    (max_length 256)

    (default "command.com")
    (value_in non_exclusive "command.com"
                            "start cmd.exe"
                            "xterm &" /* DON'T TRANSLATE! */)
      )
  (label (position 7  7)
    (text "File manager")
  )
  (field "file_manager" (position 22  7) (display_length 20) (input allowed)
    (max_length 256)

    (default "explorer")
    (value_in non_exclusive (file) "explorer" /* DON'T TRANSLATE! */)
      )
  (label (position 7  8)
    (text "Shell output redirection")
  )
  (field "os_log" (position 22  8) (display_length 20) (input allowed)
    (max_length 256)

    (default "> os_log.ssi")
    (value_in non_exclusive "> os_log.ssi" "os_log=>& os_log.ssi" 
                            "1> os_log.ssi 2>&1" /* DON'T TRANSLATE! */)
      )

  /*
  ** Text Editor
  */
  (label (position  7 10)
    (text "External text editor")
  )
  (label (position 7 11)
    (text "Startup command")
  )
  (field "text_editor" (position 22 11) (display_length 20) (input allowed)
    (max_length 256)

    (default "notepad !AS")
    (file (extension "*.*"))
      )

  /*
  ** Help Viewer
  */
  (label (position  7 13)
    (text "External html viewer")
  )
  (label (position  7 14)
    (text "Browser to use")
  )
  (field "viewer_service_name" (position 22 14) (display_length 20) (input allowed)
    (max_length 256)

    (default "DEFAULT")
    (value_in "DEFAULT" "iexplore" "OTHER"
              [default "Default Browser" "Microsoft Internet Explorer" "Other Browser"])
      )
  (label (position  7 15)
    (text "Browser location")
  )
  (field "help_viewer_path" (position 22 15) (display_length 40) (input allowed)
    (max_length 256)

    (default "C:/Program Files/Netscape/Navigator/Program/netscape.exe")
    (value_in non_exclusive (file) "C:/Program Files/Netscape/Navigator/Program/netscape.exe"
                                   "C:/Program Files/Netscape/Communicator/Program/netscape.exe"
                                   "C:/Program Files/Plus!/Microsoft Internet/iexplore.exe"
                                   "C:/Program Files/Microsoft Internet/iexplore.exe")
      )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                  PRESENTATION DEFINITION FILES
  **                  -----------------------------
  */

  /*
  ** Draw styles files
  */
  (label (position  7  5)
    (text "Graphics drawing styles")
  )
  (label (position 7  6)
    (text "Draw styles file")
  )
  (field "draw_styles_file" (position 22  6) (display_length 20) (input allowed)
    (max_length 256)

    (default "SSI_STYLES:styles.ssi")
    (file)
      )
  (label (position 7  7) 
    (text "Drill/Blast styles file")
  )

  (field "blast_styles_file" (position 22  7) (display_length 20) (input allowed)
    (max_length 256)
    (default "SSI_STYLES:blast.ssi")
    (file)
      )

  /*
  ** Scheduler styles files
  */

  (label (position  7  9)
    (text "SCHEDULER drawing styles")
  )
  (label (position 7  10)
    (text "Ore body styles file")
  )

  (field "ore_body_draw_styles" (position 22  10) (display_length 20) (input allowed)
    (max_length 256)
    (default "SSI_STYLES:styles.ore")
    (file)
      )

  (label (position 7 11)
    (text "Mining blocks styles file")
  )
  (field "mining_block_draw_styles" (position 22 11) (display_length 20) (input allowed)
    (max_length 256)
    (default "SSI_STYLES:styles.mbk")
    (file)
      )
  /*
  ** Drill hole display
  */

  (label (position  7 13)
    (text "Drill hole display")
  )
  (label (position 7 14)
    (text "Pattern file")
  )
  (field "drill_hole_pattern_file" (position 22 14) (display_length 20) (input allowed)
    (max_length 256)
    (default "SSI_STYLES:dholes.ssi")
    (file)
      )




  /*
  ** ------------------------------------------------------------------------
  ** 
  **                     NOTE/LOG FILES
  **                     -----------------
  */

  /*
  ** File actions
  */
  (label (position 11  5)
    (text "File actions on save")
  )
  (label (position 11  6)
    (text "Report files")
  )
  (field "not_file_action" (position 26  6) (display_length 10) (input allowed)
    (max_length 256)

    (default "view")
    (value_in "view" "print" "open" "none")
  )
  (label (position 11  7)
    (text "During macro execution")
  )
  (field "not_file_macro_action" (position 26  7) (display_length 10) (input allowed)
    (max_length 256)

    (default "none")
    (value_in "view" "print" "open" "none")
  )
  (label (position 11  8)
    (text "Log files")
  )
  (field "log_file_action" (position 26  8) (display_length 10) (input allowed)
    (max_length 256)

    (default "view")
    (value_in "view" "print" "none")
      )
  (label (position 11  9)
    (text "During macro execution")
  )
  (field "log_file_macro_action" (position 26  9) (display_length 10) (input allowed)
    (max_length 256)

    (default "none")
    (value_in "view" "print" "none")
      )

  /*
  ** File viewing
  */
  (label (position 11 11)
    (text "File viewing")
  )
  (label (position 11 12)
    (text "View command")
  )
  (field "file_view_command" (position 26 12) (display_length 20) (input allowed)
    (max_length 256)

    (default "notepad.exe")
    (value_in non_exclusive (file) "notepad.exe"
                            "/usr/openwin/bin/textedit !AS &"
                            "/usr/sbin/jot !AS &"
                            "/usr/dt/bin/dtpad !AS &"
                            "/usr/vue/bin/vuepad !AS &")
      )

  /*
  ** File deletion
  */
  (label (position 11 14)
    (text "File deletion")
  )
  (label (position 11 15)
    (text "Confirm file deletion ")
  )
  (field "ConfirmFileDeletion" (position 26 15)
    (display_length 1) (default "N") (value_in "Y" "N") (max_length 1) (input allowed)
  )
  (label (position 11 16)
    (text "Confirm network file deletion ")
  )
  (field "ConfirmNetworkFileDeletion" (position 26 17)
    (display_length 1) (default "N") (value_in "Y" "N") (max_length 1) (input allowed)
  )

  (label (position 11 17)
    (text "Permanent delete")
  )
  (field "PermanentDelete" (position 26 18)
    (display_length 1) (default "N") (value_in "Y" "N") (max_length 1) (input allowed)
  )
 
  /*
  ** File printing
  */
  (label (position 11 19)
    (text "File printing")
  )
  (label (position 11 20)
    (text "Printing command")
  )
  (field "file_print_command" (position 26 20) (display_length 20) (input allowed)
    (max_length 256)

    (default "command.com /c copy !AS lpt1:")
    (value_in non_exclusive (file) "command.com /c copy !AS lpt1:"
                            "cmd.exe /c copy !AS lpt1:"
                            "/bin/lp !AS &"
                            "/usr/bin/lp !AS &")
      )

  /*
  ** ------------------------------------------------------------------------
  ** 
  **                         STRING FILENAME FORMAT
  **                         ----------------------
  */


  (label (position 15  7)
    (text "FIL  (The number of characters in a string file name)")
  )

  (field "stringfile_fil" (position 53 7) (display_length 3) (input allowed)
    (translate none)  (max_length 3)

    (format integer_4)
    (low_bound 0) (high_bound 256) 
    (default "0")
      )


  (label (position 15  8)
    (text "LOC  (The maximum number of characters in a file location)")
  )

  (field "stringfile_loc" (position 53 8) (display_length 3) (input allowed)
    (translate none)  (max_length 3)

    (format integer_4)
    (low_bound 0) (high_bound 252)
    (default "0")
      )

  (label (position 15  9)
    (text "ID  (The maximum number of digits in a file ID number)")
  )

  (field "stringfile_id" (position 53 9) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

    (format integer_4)
    (low_bound 0) (high_bound 32)
    (default "0")
      )


  (label (position 15  10)
    (text "FMT  (The type of formating for the file ID numbers)")
  )

  (field "stringfile_fmt" (position 53 10) (display_length 1) (input allowed)
    (translate none)  (max_length 1)

    (format integer_4)
    (low_bound 0) (high_bound 2)
    (default "0")
      )

  (label (position 15  11)
    (text "WID  (The total width of the formatted number)")
  )

  (field "stringfile_wid" (position 53 11) (display_length 3) (input allowed)
    (translate none)  (max_length 3)

    (format integer_4)
    (low_bound 0) 
    (default "0")
      )

  (label (position 15  12)
    (text "DEC  (The number of decimal places in the number)")
  )

  (field "stringfile_dec" (position 53 12) (display_length 3) (input allowed)
    (translate none)  (max_length 3)

    (format integer_4)
    (low_bound 0) 
    (default "0")
      )


  (label (position 15  13)
    (text "OCHR  (Character substitution parameter (see Help))")
  )

  (field "stringfile_ochr" (position 53  13) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

      )

  (label (position 15  14)
    (text "NCHR  (Character substitution parameter (see Help))")
  )

  (field "stringfile_nchr" (position 53  14) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

      )

  (label (position 15  15)
    (text "DELIM  (The delimiter used at the end of a logical name)")
  )

  (field "stringfile_delim" (position 53  15) (display_length 2) (input allowed)
    (translate none)  (max_length 2)

      )


  /*
  ** ------------------------------------------------------------------------
  ** 
  **                     MISCELLANEOUS SETTINGS
  **                     ----------------------
  */

  /*
  ** Statup Banner
  */
  /*
  ** File options
  */
  (label (position  6  9)
    (text "File options")
  )
  (label (position  6 10)
    (text "Lock files")
  )
  (field "file_locking" (position 20 10) (display_length 2) (input allowed)
    (translate none) (max_length 2)
    (default "off")
    (value_in "on" "off"
     [default "Y" "N"])

      )    

  /*
  ** Text file output
  */
  (label (position  6 12)
    (text "Text file output")
  )
  (label (position  6 13)
    (text "Lines per page")
  )
  (field "lines_per_page" (position 20 13) (display_length 2) (input allowed)
    (max_length 4)

    (default "70")
    (format integer_4)
    (low_bound 0) (high_bound 100)
      )

  /*
  ** Mouse Settings
  */
  (label (position  40  5)
    (text "Mouse settings")
  )
  (label (position 40  6)
    (text "Debounce time")
  )
  (field "mouse_debounce" (position 57  6) (display_length 4) (input allowed)
    (max_length 6)

    (default "0.15")
    (format real_8)
    (low_bound 0) (high_bound 1)
      )

  (label (position 43 12) (text "Graphics Mode"))
  (field "graphics_mode" (position 47  6) (display_length 10) (input allowed)
    (translate lower)  (max_length 10)

    (default "default")
    (value_in "default" "bitmap")
    (help "")
  )

  (label (position 43 12) (text "Port Number"))
  (field "graphics_port" (position 43 12)
    (display_length 16)
    (default "80")
    (max_length 30)(input allowed)
    (format integer_4)
    (help "")
  )

  (label (position 43 12) (text "Override Default Port"))
  (field "override_default_port" (position 21 16) (display_length 2) (input allowed)
    (translate upper) (max_length 2) (help "")
  )

  /*
  ** Triangulate Stitch Algorithm
  */
  (label (position  40 11)
    (text "Triangulate stitch algorithm")
  )
  (label (position 40 12)
    (text "Algorithm")
  )
  (field "triangulate_stitch_algorithm" (position 57 12) (display_length 2) (input allowed)
    (max_length 2)

    (default "3")
    (format integer_4)
    (value_in "0" "1" "2" "3")
      )
  (label (position 40 13)
    (text "Max memory usage (bytes)")
  )
  (field "triangulate_stitch_limit" (position 57 13) (display_length 10) (input allowed)
    (max_length 15)

    (default "10000000")
    (low_bound 500000)
      )

  (label (position 40 13)
    (text "Maximum Heap Size")
  )
  (field "jvm_max_heap_size" (position 57 13) (display_length 4) (input allowed)
    (max_length 4) 
    (format integer_4)
    (value_in "64" "128" "256" "512")
    (default "128")
  )
  (label (position 3 12) (text "Report Format"))

  (field "report_format" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "PDF compress ?"))

  (field "report_pdf_compress" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "Table style"))

  (field "report_table_style" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "Table font"))
  (field "report_font_table" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
      
  (label (position 3 12) (text "Table font bold"))
  (field "report_font_table_bold" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "Plain font"))
  (field "report_font_plain" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
      
  (label (position 3 12) (text "Bold font"))
  (field "report_font_bold" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
      
  (label (position 3 12) (text "Italic font"))
  (field "report_font_italic" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
    
  (label (position 3 12) (text "Bold/italic font"))
  (field "report_font_bolditalic" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "Heading font 0"))
  (field "report_font_heading0" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
  
  (label (position 3 12) (text "Heading font 1"))
  (field "report_font_heading1" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
  
  (label (position 3 12) (text "Heading font 2"))
  (field "report_font_heading2" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
  
  (label (position 3 12) (text "Heading font 3"))
  (field "report_font_heading3" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )
  
  (label (position 3 12) (text "Heading footer font"))
  (field "report_font_header_footer" (position 43 12)
    (display_length 20) (input allowed)(max_length 80)
  )

  (label (position 3 12) (text "Preview zoom percentage"))

  (field "report_zoom_percentage" (position 43 12)
    (display_length 3) (input allowed)(max_length 3)
    (format real_8) (value_in "10" "25" "50" "75" "100" "150" "200" "500")
  )

  (label (position 43 12) (text "scl debug host"))
  (field "scl_debug_host" (position 43 12)
    (display_length 16)
    (default "localhost")
    (max_length 30)(input allowed)
    )

  (label (position 43 12) (text "scl debug port"))
  (field "scl_debug_port" (position 43 12)
    (display_length 16)
    (default "2576")
    (max_length 30)(input allowed)
    (format integer_4)
    )
 
  (label (position 43 12) (text "scl prodebug file"))
  (field "scl_prodebug_file" (position 43 12)
    (display_length 16)
    (default "c:/Program Files/TclPro1.2/win32(ix86/bin/prodebug.tcl")
    (max_length 256)(input allowed)
    )

  (label (position 43 12) (text "Scl library path"))
  (field "sclLibraryPath" (position 43 12)
    (display_length 16)
    (max_length 256)(input allowed)
    (help "")
  )

  (label (position 43 12) (text "Use software frame buffer"))
  (field "use_software_frame_buffer" (position 43 12)
    (display_length 1)
    (default "Y")
    (value_in "Y" "N")
    (max_length 1)(input allowed)
    )

  (label (position 43 12) (text "Confirm file overwrite"))
  (field "mac_confirm_file_overwrite" (position 21 16) (display_length 2) (input allowed)
    (translate none)  (max_length 2)
    (default "on")
    (value_in "on" "off"
     [default "Y" "N"])
      (help ""
      )
  )

  /*
  ** Block model defaults 
  */
 (field "bm_autosave" (position 3  7) (display_length 6) (input allowed)
   (translate none) (max_length 10)
   (format integer_4)
   (value_in non_exclusive "1" "2" "3" "4" "5" "6" "7" "8" "9" "10")
  )

 (field "debug_blocks" (position 3  7) (display_length 6) (input allowed)
   (translate none) (max_length 10)
   (format integer_4)
   (value_in non_exclusive "5" "10" "20" "50" "100" "500" "1000")
  )

 (field "database_column_browser_limit" (position 3  7) (display_length 6) (input allowed)
   (translate none) (max_length 10)
   (format integer_4)
   (value_in non_exclusive "1000" "5000" "10000")
  )


 (field "gslib90" (position 26  6) (display_length 10) (input allowed) (null allowed)
    (max_length 256)
    (default "")
  )

  (default_buttons)
)
