Ignore:
Timestamp:
Jul 11, 2013, 11:56:47 PM (11 years ago)
Author:
sommeria
Message:

a few bugs corrected: import and retrival of parameters in series. mask in civ_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uigetfile_uvmat.m

    r653 r664  
    123123function OK_Callback(option,filter_ext,hObject,event)
    124124hfig=get(hObject,'parent');%handle of the fig
    125 % if ~strcmp(get(hfig,'SelectionType'),'open')
    126 %     return %select double click
    127 % end
    128 %set(hObject,'BackgroundColor',[1 1 0])% paint list in yellow to indicate action
    129 %     drawnow
    130125htitlebox=findobj(hfig,'tag','titlebox');  % display the current dir name 
    131126DirName=get(htitlebox,'String');
     
    135130    list=get(hlist,'String');
    136131    index=get(hlist,'Value');
    137     SelectName=regexprep(list{index},'^\+/','');% remove the +/ used to mark dir
     132    if ~isempty(regexp(list{index},'^\+/'))
     133        return % quit if a dir has been opened
     134    end
     135    %SelectName=regexprep(list{index},'^\+/','');% remove the +/ used to mark dir
     136    SelectName=list{index};
    138137    ind_dot=regexp(SelectName,'\s*\.\.\.');%remove what is beyond  '...'
    139138    if ~isempty(ind_dot)
    140139        SelectName=SelectName(1:ind_dot-1);
    141140    end
    142     % if strcmp(SelectName,'..')% the upward dir option has been selected
    143     %     FullSelectName=fileparts(DirName);
    144     % else
    145141    FullSelectName=fullfile(DirName,SelectName);
    146     % end
    147142    if exist(FullSelectName,'file')
    148143        switch option
     
    164159    end
    165160end
    166 %set(hObject,'BackgroundColor',[0.7 0.7 0.7])% paint list in grey to indicate action end
    167161
    168162uiresume(get(hObject,'parent'))
     
    253247%------------------------------------------------------------------------
    254248hfig=get(hObject,'parent');%handle of the fig
    255 % if ~strcmp(get(hfig,'SelectionType'),'open')
    256 %     return %select double click
    257 % end
    258249set(hObject,'BackgroundColor',[1 1 0])% paint list in yellow to indicate action
    259250    drawnow
Note: See TracChangeset for help on using the changeset viewer.