#  This User Interface Description File illustrates the use of forms
#  with a Master having 2 subform buttons.  Each subform button brings
#  up a different subform.  The first subform has a guide pane with 2 guide buttons;
#  each guide button will bring up a different pane.  The second subform has only
#  a single pane.


-F 4.2 1 1 66x100+10+20 +35+1 'Example Master Form' Master
 -S 1 1
    -d 1 0 12x2+2+4 'Subform1'
    -d 1 0 12x2+2+6 'Subform2'
    -n 1 0 12x2+2+10 'Master Action' 'description of action' master_action
    -w 512x256+15+2 +25+1 'Workspace' 'workspace widget' workspace
    -H 1   12x2+2+14 'Help' 'help for master' /dev/null
    -H 1   10x1+77+0 'Copyright' 'Copyright' $KHOROS_HOME/doc/xprism/xprism2/copyright
    -Q 1 0 12x2+2+16 'QUIT'
 -E
 -M 1 0 66x100+10+20 +30+0 'Sample SubForm 1' Subform1
    -G 1 20x20+0+1 +5+1 'Guide Pane'
       -g 1 1 15x2+2+3 'Input'
       -g 1 0 15x2+2+5 'Output'
       -m 1 0 15x2+2+8 'Subform Action' 'description of action' operation
       -Q 0 0 14x2+2+11 'QUIT'
    -E
    -P 1 1 40x20+19+1 +5+0 'Example of Input File & Logicals' input
        -I 1 0 0 1 0 1 43x1+0+2 +0+0 ' ' 'Input File' 'file to be used' infile
        -l 1 0 0 1 0 40x1+4+5 +0+0 1 'Add File' 'false' 'true' 'adds a new file' add_file
        -l 1 0 0 1 0 40x1+4+7 +0+0 0 'Delete File' 'false' 'true' 'deletes an old file' delete_file
        -a 1 0 20x2+2+9 'Get Input' 'retrieves input' get_input
    -E
    -P 1 0 40x20+19+1 +12+0 'Example of Output File' output
        -O 1 0 0 1 1 0 40x1+0+2 +0+0 ' ' 'Output File' 'file to be saved' outfile
        -a 1 0 20x2+2+9 'Save File' 'stores output' save_output
    -E
 -E
 -M 1 0 66x100+10+20 +10+0 'Sample SubForm 2' Subform2
    -P 1 1 40x20+1+1 +5+0 'Example of Toggle & Floats' transforms
	 -T 1 0 0 1 0 40x1+2+2 +0+0 3 'Toggle example:' 'example' trans_type
            -l 1 0 1 0 0 40x1+1+1 +0+0 0 'choice 1' 'false' 'true' 'selects choice 1' ch1
            -l 1 0 1 0 0 40x1+14+1 +0+0 0 'choice 2' 'false' 'true' 'selects choice 2 ' ch2
            -l 1 0 1 1 0 40x1+27+1 +0+0 0 'choice 3' 'false' 'true' 'selects choice 3 ' ch3
         -E
         -f 1 0 0 1 0 40x1+0+5 +0+0 -100 100 0 'x value' 'the value of X ' x_val
         -f 1 0 0 1 0 8x1+0+7 +0+0 -100000 100000 0 'y value' 'the value of Y ' y_val
         -i 1 0 0 1 0 34x1+5+9 +0+0 -100 100 0 'integer 2' 'selects int 2 ' int2
         -i 1 0 0 1 0 19x1+5+10 +0+0 -1 -1 -6 'integer 1' 'selects int 1 ' int1
	 -C 1
           -s 1 0 1 1 0 34x1+5+12 +0+0 ' ' 'string 1' 'first string' string1
           -s 1 0 1 0 0 34x1+5+13 +0+0 ' ' 'string 2' 'second string' string2
           -s 1 0 1 0 0 34x1+5+14 +0+0 ' ' 'string 3' 'third string' string3
           -i 1 0 1 0 0 34x1+5+15 +0+0 -1 -1 -6 'integer ' 'integer instead of a string' int4
	 -E
         -a 1 0 15x2+2+17 'Do Something' ' ' do_something
         -Q 0 0 7x2+32+17 'QUIT'
    -E
 -E
-E
