Complete EZview reformatting

This commit is contained in:
2024-07-31 00:36:40 -04:00
parent 79e3676ed3
commit 019fb07f79
36 changed files with 7526 additions and 8544 deletions

View File

@@ -1,67 +1,61 @@
% Is the callback supposed to be nested?
function EZmultiDayGui
%global Exp
global exDlst
%global Exp
global exDlst
xPos=0.05;
btnWid=0.10;
btnHt=0.05;
spacing=0.02;% Spacing between the button and the next command's label
%====================================
btnWid=0.10;
btnHt=0.05;
spacing=0.02;% Spacing between the button and the next command's label
% The ADD Groups button
btnNumber=1;
yPos=0.85-(btnNumber-1)*(btnHt+spacing);
btnPos=[xPos yPos-spacing btnWid btnHt];
%fhImParm=gcf;
btnNumber=1;
yPos=0.85-(btnNumber-1)*(btnHt+spacing);
btnPos=[xPos yPos-spacing btnWid btnHt];
%fhImParm=gcf;
exFolder=uigetdir
exDirs=dir(exFolder)
exFs={exDirs.name}
f=figure('Menubar','none','Position',[1000 100 640 750],'Name','Select Exp Folders' );
hListbox=uicontrol(...
'Style', 'listbox',...
'String',sort(exFs),...
'value',[],...
'max',1000,...
'min',1,...
'Units','normalized',...
'Position', [.70 .40 .6 .60],...
'callback',{@load_listbox}); % 'uiresume(gcbf)'); 'Position', [5 100 60 20])
%====================================
exFolder=uigetdir
exDirs=dir(exFolder)
exFs= {exDirs.name}
function load_listbox(source,eventdata)
% global CSrchRng
% global CSrearchRange
userIndx=(get(source,'value'))
userStr=(get(source,'string'))
% scLstIndx=str2num(char(strrep(userStr(userIndx), 'Scan', '')))
user_entry=userStr(userIndx)
exDlst=user_entry
end
exFs
btnNumber=10;
yPos=0.85-(btnNumber-1)*(btnHt+spacing);
btnPos=[xPos yPos-spacing btnWid btnHt];
f=figure('Menubar','none','Position',[1000 100 640 750],'Name','Select Exp Folders' );
hListbox=uicontrol(...
'Style', 'listbox',...
'String',sort(exFs),...
'value',[],...
'max',1000,...
'min',1,...
'Units','normalized',...
'Position', [.70 .40 .6 .60],...
'callback',{@load_listbox}); %'uiresume(gcbf)'); 'Position', [5 100 60 20])
function load_listbox(source,eventdata)
%global CSrchRng
%global CSrearchRange
userIndx=(get(source,'value'))
userStr=(get(source,'string'))
%scLstIndx= str2num(char(strrep(userStr(userIndx), 'Scan', '')))
hedit8=uicontrol(...
'Style', 'pushbutton',...
'String',{'Continue'},...
'Units','normalized',...
'Position', btnPos,...
'callback','uiresume(gcbf)');
user_entry=userStr(userIndx)
exDlst= user_entry
end
exFs
btnNumber=10;
yPos=0.85-(btnNumber-1)*(btnHt+spacing);
btnPos=[xPos yPos-spacing btnWid btnHt];
uiwait(gcf);
hedit8=uicontrol(...
'Style', 'pushbutton',...
'String',{'Continue'},...
'Units','normalized',...
'Position', btnPos,...
'callback','uiresume(gcbf)');
uiwait(gcf);
close(f)
close(f)
end
%*******************
%EZmultiDay
%*****************************************************************
% EZmultiDay