(form "21401" (size 57 17)
    (heading "IMPORT WHITTLE FILE")

    (label
        (position 2 3)
        (text "Parameter file name")
    )

    (field "file_name"
        (position 20 3)
        (display_length 10)
        (max_length 40)
        (translate lower)
        (input allowed)
        (null disallowed)
        (file (extension trim "*.par"))
        )

    (label
        (position 2 4)
        (text "Model file name")
    )

    (field "mod_file_name"
        (position 20 4)
        (display_length 10)
        (max_length 40)
        (translate lower)
        (input allowed)
        (null allowed)
        (file (extension trim "*.mdl"))
        )

    (label
        (position 2 5)
        (text "Model description")
    )

    (field "mod_desc"
        (position 20 5)
        (display_length 20)
        (max_length 100)
        (input allowed)
        (null allowed)
        )

    (label
        (position 2 7)
        (text "Block size")
    )

    (label
        (position 19 7)
        (text "X")
    )
    (label
        (position 30 7)
        (text "Y")
    )
    (label
        (position 41 7)
        (text "Z")
    )
    (field "size0"
        (position 21 7)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "size1"
        (position 32 7)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "size2"
        (position 43 7)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )

    (label
        (position 2 8)
        (text "Number of blocks")
    )

    (label
        (position 19 8)
        (text "X")
    )
    (label
        (position 30 8)
        (text "Y")
    )
    (label
        (position 41 8)
        (text "Z")
    )
    (field "num0"
        (position 21 8)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "num1"
        (position 32 8)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "num2"
        (position 43 8)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (label
        (position 2 9)
        (text "Origin")
    )

    (label
        (position 19 9)
        (text "X")
    )
    (label
        (position 30 9)
        (text "Y")
    )
    (label
        (position 41 9)
        (text "Z")
    )
    (field "org0"
        (position 21 9)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "org1"
        (position 32 9)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    (field "org2"
        (position 43 9)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )
    
    (label
        (position 2 9)
        (text "Bearing (rotation about z-axis)")
    )
    (field "bearing"
        (position 19 9)
        (display_length 6)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (null disallowed)
    )

    (field "file_type_warning"
        (position 20 10)
        (display_length 10)
        (foreground (user_option "form_heading_foreground"))
        (background (user_option "form_background"))
        (max_length 40)
        (input disallowed)
    )

    (field "ref_heading"
        (position 2 11)
        (display_length 25)
        (foreground (user_option "form_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (default "Reference block coordinates")
    )

    (field "ref_label0"
        (position 28 11)
        (display_length 2)
        (foreground (user_option "form_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (default "X")
    )

    (field "ref_label1"
        (position 36 11)
        (display_length 2)
        (foreground (user_option "form_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (default "Y")
    )

    (field "ref_label2"
        (position 44 11)
        (display_length 2)
        (foreground (user_option "form_foreground"))
        (background (user_option "form_background"))
        (input disallowed)
        (default "Z")
    )

    (field "ref0"
        (position 31 11)
        (display_length 2)
        (input allowed)
        (null disallowed)
        (default "1")
        )
    (field "ref1"
        (position 39 11)
        (display_length 2)
        (input allowed)
        (null disallowed)
        (default "1")
        )
    (field "ref2"
        (position 47 11)
        (display_length 2)
        (input allowed)
        (null disallowed)
        (default "1")
        )

    (field "parcel"
        (position 25 13)
        (display_length 1)
        (max_length 5)
        (translate upper)
        (input allowed)
        (null disallowed)
        (value_in "Y" "N")
        (default "N")
        )
    (default_buttons)
)
