Changeset 613 for trunk/src/uigetfile_uvmat.m
- Timestamp:
- Apr 19, 2013, 8:26:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uigetfile_uvmat.m
r612 r613 48 48 uicontrol('Style','text','Units','normalized', 'Position', [0.05 0.97 0.5 0.03],'BackgroundColor',BackgroundColor,... 49 49 'String','path:','FontUnits','points','FontSize',12,'FontWeight','bold','ForegroundColor','blue','HorizontalAlignment','left'); 50 uicontrol('Style','edit','Units','normalized', 'Position', [0.05 0.89 0.9 0.08],'tag','titlebox','Max',2,'BackgroundColor',[1 1 1], ...50 uicontrol('Style','edit','Units','normalized', 'Position', [0.05 0.89 0.9 0.08],'tag','titlebox','Max',2,'BackgroundColor',[1 1 1],'Callback',@refresh_GUI,... 51 51 'String',InputDir,'FontUnits','points','FontSize',12,'FontWeight','bold'); 52 52 uicontrol('Style','pushbutton','Tag','backward','Units','normalized','Position',[0.05 0.75 0.1 0.07],... … … 96 96 end 97 97 hfig=get(hObject,'parent'); 98 hlist=findobj(hfig,'tag','list');% find the list object 99 set(hlist,'BackgroundColor',[1 1 0]) 100 drawnow 98 101 htitlebox=findobj(hfig,'tag','titlebox'); 99 102 DirName=get(htitlebox,'String'); … … 105 108 hcheck_date=findobj(hfig,'tag','check_date'); 106 109 ListFiles=list_files(DirName,get(hcheck_date,'Value'),sort_option);% list the directory content 107 hlist=findobj(hfig,'tag','list');% find the list object 110 108 111 set(hlist,'String',ListFiles) 109 112 Value=[]; … … 115 118 end 116 119 set(hlist,'Value',Value) 117 120 set(hlist,'BackgroundColor',[0.7 0.7 0.7]) 118 121 if strcmp(get(hfig,'Tag'),'status_display') 119 122 hseries=findobj(allchild(0),'tag','series'); … … 217 220 % FullSelectName=fileparts(fileparts(FullSelectName)); 218 221 % end 222 set(hObject,'BackgroundColor',[1 1 0])% paint list in yellow to indicate action 223 drawnow 219 224 hbackward=findobj(hfig,'Tag','backward'); 220 225 set(hbackward,'UserData',DirName); %store the current dir for future backward action … … 225 230 end 226 231 hcheck_date=findobj(hfig,'tag','check_date'); 232 227 233 ListFiles=list_files(FullSelectName,get(hcheck_date,'Value'),sort_option);% list the directory content 228 234 set(hObject,'Value',1) 229 235 set(hObject,'String',ListFiles) 236 set(hObject,'BackgroundColor',[0.7 0.7 0.7]) 230 237 set(htitlebox,'String',FullSelectName)% record the new dir name 231 238 elseif exist(FullSelectName,'file')%visualise the field if it exists … … 288 295 DirName=pwd; 289 296 hfig=get(hObject,'parent'); 297 hlist=findobj(hfig,'tag','list');% find the list object 298 set(hlist,'BackgroundColor',[1 1 0]) 299 drawnow 290 300 sort_option='name';%default 291 301 hsort_option=findobj(hfig,'tag','sort_option'); … … 297 307 htitlebox=findobj(hfig,'Tag','titlebox'); 298 308 set(htitlebox,'String',DirName)% record the new dir name 299 hlist=findobj(hfig,'tag','list');% find the list object 309 set(hlist,'Value',1) 300 310 set(hlist,'String',ListFiles) 311 set(hlist,'BackgroundColor',[0.7 0.7 0.7]) 301 312 %------------------------------------------------------------------------ 302 313
Note: See TracChangeset
for help on using the changeset viewer.