Changeset 733


Ignore:
Timestamp:
Sep 13, 2010 5:11:25 PM (12 years ago)
Author:
srkline
Message:

Fix for ticket #280, added a "cancel" button to the "set" buttons when building the protocol from the panel. Now gives a logical way out if you don't really want to change anything. Other "sets" like DIV and MASK take only one file, so it will only (always) set whatever you picked, overwriting if it needs to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProtocolAsPanel.ipf

    r665 r733  
    517517         
    518518        //ask to reset the list? 
    519         DoAlert 1,"Reset the list of sample files?" 
     519        DoAlert 2,"Reset the list of sample files?" 
     520        if(V_flag == 3) 
     521                return(0)               //cancel, get out 
     522        endif 
    520523        if(V_flag == 1) 
    521524                String/G root:myGlobals:Protocols:gSAM = "" 
     
    565568         
    566569        //ask to reset the list? 
    567         DoAlert 1,"Reset the list of background files?" 
     570        DoAlert 2,"Reset the list of background files?" 
     571        if(V_flag == 3) 
     572                return(0)               //cancel, get out 
     573        endif 
    568574        if(V_flag == 1) 
    569575                String/G root:myGlobals:Protocols:gBGD = "" 
     
    608614 
    609615        //ask to reset the list? 
    610         DoAlert 1,"Reset the list of empty cell files?" 
     616        DoAlert 2,"Reset the list of empty cell files?" 
     617        if(V_flag == 3) 
     618                return(0)               //cancel, get out 
     619        endif 
    611620        if(V_flag == 1) 
    612621                String/G root:myGlobals:Protocols:gEMP = "" 
Note: See TracChangeset for help on using the changeset viewer.