#
# HELP: SYNOPSIS:
# HELP:     voxren/menu/save
# HELP:
# HELP: DESCRIPTION:
# HELP:     Save the active volume, ask for filename and confirmation
# HELP:     if file exists.
#
CECHO ${$root.func.var.new("string","tmp")}
CECHO ${$root.func.var.new("string","tmp2")}
VARFROMPROCESS tmp eccet_openfile save ${$root.application.voxren.datapath}
IF ${$tmp=="."} QUIT
CECHO ${$tmp2="1"}
IF ${$root.func.file.exists($tmp)} VARFROMPROCESS tmp2 eccet_confirm 300 60 "File exists - overwrite?"
IF ${$tmp2=="0"} QUIT
CECHO ${$root.application.voxren.datapath=$root.func.file.getdir($tmp)}
VIEW_SET Main
SAVE ${$tmp}
VIEW_RENDER
if ${$root.rc!=0} ECHO SAVE FAILED.
