- Timestamp:
- Mar 20, 2020 11:51:13 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventMode_Utils.ipf
r1242 r1247 4 4 5 5 6 7 6 // 7 // There are functions in this file to generate "fake" event data for testing 8 // 8 9 9 10 … … 1046 1047 // 1047 1048 Window V_Event_Reduce_Panel() 1049 Variable sc = 1 1050 1051 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1052 sc = 0.7 1053 endif 1054 1048 1055 PauseUpdate; Silent 1 // building window... 1049 NewPanel /W=(535 ,72,951,288) /K=1 as "Event File File Reduction"1056 NewPanel /W=(535*sc,72*sc,951*sc,288*sc) /K=1 as "Event File File Reduction" 1050 1057 ModifyPanel cbRGB=(60535,51151,51490) 1051 1058 ModifyPanel fixedSize=1 1052 1059 SetDrawLayer UserBack 1053 DrawLine 7 ,30,422,301054 SetVariable PathDisplay,pos={ 77,7},size={300,13},title="Path"1060 DrawLine 7*sc,30*sc,422*sc,30*sc 1061 SetVariable PathDisplay,pos={sc*77,7*sc},size={sc*300,13*sc},title="Path" 1055 1062 SetVariable PathDisplay,help={"This is the path to the folder that will be used to find the SANS data while reducing. If no files appear in the popup, make sure that this folder is set correctly"} 1056 1063 SetVariable PathDisplay,limits={-Inf,Inf,0},value= root:Packages:NIST:VSANS:Globals:EVRED:gCatPathStr 1057 Button PathButton,pos={ 3,3},size={70,20},proc=V_PickEVRPathButton,title="Pick Path"1064 Button PathButton,pos={sc*3,3*sc},size={sc*70,20*sc},proc=V_PickEVRPathButton,title="Pick Path" 1058 1065 Button PathButton,help={"Select the folder containing the raw SANS data files"} 1059 Button helpButton,pos={ 385,3},size={25,20},proc=V_ShowEVRHelp,title="?"1066 Button helpButton,pos={sc*385,3*sc},size={sc*25,20*sc},proc=V_ShowEVRHelp,title="?" 1060 1067 Button helpButton,help={"Show the help file for reducing event files"} 1061 PopupMenu ERFilesPopup,pos={ 3,45},size={167,19},proc=V_EVR_RedPopMenuProc,title="File to Reduce"1068 PopupMenu ERFilesPopup,pos={sc*3,45*sc},size={sc*167,19*sc},proc=V_EVR_RedPopMenuProc,title="File to Reduce" 1062 1069 PopupMenu ERFilesPopup,help={"The displayed file is the one that will be reduced."} 1063 1070 PopupMenu ERFilesPopup,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRedList" 1064 1071 1065 SetVariable ERSlices,pos={ 3,75},size={100,15},title="# of slices"1072 SetVariable ERSlices,pos={sc*3,75*sc},size={sc*100,15*sc},title="# of slices" 1066 1073 SetVariable ERSlices,limits={0,1000,0},value=root:Packages:NIST:VSANS:Globals:EVRED:gNumSlices 1067 1074 1068 SetVariable ERSelSlice,pos={ 150,75},size={100,15},title="current slice"1075 SetVariable ERSelSlice,pos={sc*150,75*sc},size={sc*100,15*sc},title="current slice" 1069 1076 SetVariable ERSelSlice,limits={0,1000,1},value=root:Packages:NIST:VSANS:Globals:EVRED:gCurSlice 1070 1077 SetVariable ERSelSlice,proc=V_ChangeSliceViewSetVar 1071 1078 1072 Button ToSTOButton,pos={ 305,45},size={100,20},proc=V_EVR_LoadAndSTO,title="Load to STO"1079 Button ToSTOButton,pos={sc*305,45*sc},size={sc*100,20*sc},proc=V_EVR_LoadAndSTO,title="Load to STO" 1073 1080 Button ToSTOButton,help={"Load the event file and copy to STO"} 1074 1081 1075 Button TimeBinButton,pos={ 305,75},size={100,20},proc=V_EVR_TimeBins,title="Time Bins"1082 Button TimeBinButton,pos={sc*305,75*sc},size={sc*100,20*sc},proc=V_EVR_TimeBins,title="Time Bins" 1076 1083 Button TimeBinButton,help={"Display the time bins"} 1077 1084 1078 // SetVariable ERList,pos={ 3,48},size={350,13},proc=V_FileNumberListProc,title="File number list: "1085 // SetVariable ERList,pos={sc*3,48*sc},size={sc*350,13*sc},proc=V_FileNumberListProc,title="File number list: " 1079 1086 // SetVariable ERList,help={"Enter a comma delimited list of file numbers to reduce. Ranges can be entered using a dash."} 1080 1087 // SetVariable ERList,limits={-Inf,Inf,1},value= root:Packages:NIST:VSANS:Globals:EVRED:gFileNumList 1081 1088 1082 PopupMenu ERProto_pop,pos={ 3,118},size={119,19},proc=V_EVR_ProtoPopMenuProc,title="Protocol "1089 PopupMenu ERProto_pop,pos={sc*3,118*sc},size={sc*119,19*sc},proc=V_EVR_ProtoPopMenuProc,title="Protocol " 1083 1090 PopupMenu ERProto_pop,help={"All of the data files in the popup will be reduced using this protocol"} 1084 1091 PopupMenu ERProto_pop,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRProtoList" 1085 Button ReduceAllButton,pos={ 3,178},size={180,20},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices"1092 Button ReduceAllButton,pos={sc*3,178*sc},size={sc*180,20*sc},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices" 1086 1093 Button ReduceAllButton,help={"This will reduce all slices."} 1087 Button ReduceOneButton,pos={ 3,148},size={180,20},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice"1094 Button ReduceOneButton,pos={sc*3,148*sc},size={sc*180,20*sc},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice" 1088 1095 Button ReduceOneButton,help={"This will reduce the selected slice."} 1089 1096 1090 Button DoneButton,pos={ 290,178},size={110,20},proc=V_EVR_DoneButtonProc,title="Done Reducing"1097 Button DoneButton,pos={sc*290,178*sc},size={sc*110,20*sc},proc=V_EVR_DoneButtonProc,title="Done Reducing" 1091 1098 Button DoneButton,help={"When done reducing files, this will close this control panel."} 1092 1099 EndMacro
Note: See TracChangeset
for help on using the changeset viewer.