#!/bin/csh
# This is a program for the example Genesis Tooling Forms.
# This file will exist in form 2.
# The purpose of this program is to prompt the user to review the results in the analysis checklist.
# It is called by the "Review Analysis Results" button.
# 
# Written by Ian Ticehurst (Autom8 Ltd.)
# Version 1A. Date: 12.09.00 - Initial design and development.
# Version 1B. Date: 11.12.00 - Add source of info. file to support gui creation.
# Version 1C. Date: 12.12.00 - Re-write the gui windows to use the sourced font and colours.
# Version 1D. Date: 05.02.01 - Modify to only check job path if job moved from original location.
#                            - Add save time update to forms.
# Version 1E. Date: 09.02.01 - Modify the setting and useage of $TMP.
# Version 1F. Date: 14.03.01 - Check how "$GENESIS_EDIR" is set to ensure paths are set correctly.
######################################################################### 

source $_genesis_root/sys/scripts/include_me

set_in_progress genform2 rar 

# Close Form
COM close_form,job=$JOB,form=genform2

# Put window on screen asking user to review analysis checklist.
o_tooling
o FONT $NORM_FNT
o BG $NORM_COL
o BW 0
o LABEL Review Analysis Pop-up
o LABEL Editor Will Be Opened
o LABEL Program will pause.
o LABEL Open the analysis checklist and review all results.
o LABEL Close pause box when review complete.
o END

do_gui

# Open editor on step "pcb".
COM open_entity,job=$JOB,type=step,name=pcb
set group=$COMANS
AUX set_group,group=$group

# Source info.source file and open analysis checklist defined.
source $JOB_PATH/user/info.source
# Open analysis checklist.
COM chklist_open,chklist=$AN_CHK
COM chklist_show,chklist=$AN_CHK
 
# Pause script and ask user to complete analysis review.
PAUSE Press continue when analysis review is done

# Close editor.
COM editor_page_close

# Open Form
COM show_form,job=$JOB,form=genform2

# Change colour of action button to show action complete.
set_complete genform2 rar

save_job 

exit 0
