##                   $FEDIR/tkGUIs/file_select_gui_ver2_test.ksh

FEDIR="/apps/nns_com/fea"

############
## OPTIONAL:  set  GEOM
############

  FILSEL_GEOM="+100+100"
# FILSEL_GEOM="+400+400"
# FILSEL_GEOM="+700+700"
export FILSEL_GEOM


############
## OPTIONAL:  set  file MASK
############

# FILSEL_MASK="/local/scratch/$USER/*"
  FILSEL_MASK="$HOME/*"
# FILSEL_MASK="/data/subs/cae/bmo01/*"
# FILSEL_MASK="/data/cvn78/division/*"
# FILSEL_MASK="/data/cvn78/division/TEST EMBEDDED BLANKS IN DIRNAME/*"
# FILSEL_MASK="/division/TEST EMBEDDED BLANKS IN DIRNAME/*"

## TEST with NON-EXISTENT STARTUP DIR:
# FILSEL_MASK="/local/scratch/$USER/xyz/*"

export  FILSEL_MASK


############
## OPTIONAL:  set top MSG
############

FILSEL_MSG="LOCATE YOUR INPUT FILE ...
including the suffix."

FILSEL_NUMLINES="3"

export  FILSEL_MSG  FILSEL_NUMLINES


############
## OPTIONAL:  set  FILTER_AT_STARTUP=YES
############

  FILTER_AT_STARTUP=YES
  export FILTER_AT_STARTUP


############
## OPTIONAL: Could initialize the file-selected
##           entry-field with a full-filename.
##      Set  FILSEL_DEFAULT="a full-file name".
############

  # FILSEL_DEFAULT="$HOME/CANDIDATE_file"
  FILSEL_DEFAULT="/local/scratch/$USER/CANDIDATE_file"
  export FILSEL_DEFAULT


############
## !EXPERIMENTAL!
## OPTIONAL EXIT-PROCEDURE TESTS,
## TRIGGERED BY VARS:
## EDITMSG_YN="YES" ; HUP_MYSELF_YN="YES"
############

# EDITMSG_YN="YES"
# export EDITMSG_YN

## HUP_MYSELF_YN="YES"
## export HUP_MYSELF_YN


############
## FOR TESTING:
## Show initialized vars.
############

echo "
Initialized Variables:

FILSEL_GEOM:     $FILSEL_GEOM

FILSEL_MASK:     $FILSEL_MASK

FILSEL_MSG:      $FILSEL_MSG
 
FILSEL_NUMLINES:    $FILSEL_NUMLINES

FILTER_AT_STARTUP:  $FILTER_AT_STARTUP

FILSEL_DEFAULT:     $FILSEL_DEFAULT
"


######################################
## RUN the script and show its output.
######################################

# set -xv
  set -x

#  FILE_SELECTED=`$FEDIR/tkGUIs/file_select_gui_ver2.tk`

#  FILE_SELECTED=`$FEDIR/tkGUIs/file_select_gui_ver2.tk "$HOME/nsmail/*"`

#  FILE_SELECTED=`$FEDIR/tkGUIs/file_select_gui_ver2.tk \
#                       '/usr/people/bmo01/nsmail/*' "xxx yyy zz" `

   FILE_SELECTED=`$FEDIR/tkGUIs/file_select_gui_ver2.tk_NEW`

#  $FEDIR/tkGUIs/file_select_gui_ver2.tk_NEW

set -

echo "
The contents of variable
FILE_SELECTED: $FILE_SELECTED
"


