Changeset 380 for sans/Dev/trunk/NCNR_User_Procedures/SANS
- Timestamp:
- Jun 11, 2008 10:45:06 AM (15 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/SANS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/Packages/ModelPicker/SANSModelPicker_v40.ipf
r318 r380 771 771 // SRK 09 JUN 2006 772 772 // 773 Proc FreezeModel(xWave,yWave,newNameStr) 773 // made data folder-aware in a somewhat messy way, but wavelist works only on the 774 // current data folder, and WaveSelectorWidget is waaaaaay too complex 775 // 776 Function FreezeModel() 777 String modelType 778 Prompt modelType,"What type of model to freeze? (smeared models use the current data set)",popup,"Unsmeared Model;Smeared Model;" 779 DoPrompt "Type of Data",modelType 780 781 if(V_Flag==1) //user canceled 782 return(1) 783 endif 784 774 785 String xWave,yWave,newNameStr 775 Prompt xwave,"X data",popup,WaveList("*",";","") 776 Prompt ywave,"y data",popup,WaveList("*",";","") 777 Prompt newNameStr,"new name for the waves, _q and _i will be appended" 778 786 787 SetDataFolder root: 788 if(cmpstr(modelType,"Smeared Model")==0) 789 ControlInfo/W=WrapperPanel popup_0 790 String folderStr=S_Value 791 SetDataFolder $("root:"+folderStr) 792 793 Prompt xwave,"X data",popup,WaveList("s*",";","") 794 Prompt ywave,"Y data",popup,WaveList("s*",";","") 795 Prompt newNameStr,"new name for the waves, _q and _i will be appended" 796 else 797 Prompt xwave,"X data",popup,WaveList("x*",";","") 798 Prompt ywave,"Y data",popup,WaveList("y*",";","") 799 Prompt newNameStr,"new name for the waves, _q and _i will be appended" 800 endif 801 802 DoPrompt "Select the Waves to Freeze",xwave,ywave,newNameStr 803 if(V_Flag==1) //user canceled 804 SetDataFolder root: 805 return(1) 806 endif 807 779 808 Duplicate/O $xwave,$(newNameStr+"_q") 780 809 Duplicate/O $ywave,$(newNameStr+"_i") … … 783 812 AppendToGraph $(newNameStr+"_i") vs $(newNameStr+"_q") 784 813 785 End 814 SetDataFolder root: 815 end -
sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/Packages/Wrapper_v40.ipf
r378 r380 133 133 endswitch 134 134 135 ControlUpdate/W=WrapperPanel popup_0 135 // ControlUpdate/W=WrapperPanel popup_0 136 //instead of a simple controlUpdate, better to pop the menu to make sure that the other menus follow 137 // but not sure how to get the most recently loaded file as the selected item - bring the 138 // wrapper panel back to the top - then pop - 139 136 140 return 0 137 141 End -
sans/Dev/trunk/NCNR_User_Procedures/SANS/Reduction/Schematic.ipf
r328 r380 23 23 Proc ShowSchematic() 24 24 25 Dowindow/F Schematic_Layout 26 if(V_flag==1) 27 Abort "Please close the existing schematic before creating a new one. Print it out if you want to save it." 28 //DoWindow/K Schematic_Layout 29 endif 30 25 31 Variable oldScaling=root:myGlobals:gLogScalingAsDefault 26 32 … … 466 472 PauseUpdate; Silent 1 // building window... 467 473 Layout/C=1/W=(5,42,360,460) as "Data Reduction Schematic" 474 DoWindow/C Schematic_Layout 468 475 Textbox/N=text0/F=0/A=LB/X=9.65/Y=98.03 "SAM" 469 476 Textbox/N=text1/F=0/A=LB/X=26.69/Y=98.03 "EMP"
Note: See TracChangeset
for help on using the changeset viewer.