Changeset 605 for trunk/src/series.m


Ignore:
Timestamp:
Apr 5, 2013, 1:17:53 PM (8 years ago)
Author:
sommeria
Message:

bugs corrected to get an advancement bar with status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r604 r605  
    417417%------------------------------------------------------------------------
    418418set(handles.REFRESH,'Visible','on')
     419set(handles.REFRESH_title,'Visible','on')
    419420iview=eventdata.Indices(1);
    420421view_set=get(handles.REFRESH,'UserData');
     
    432433set(handles.RUN,'BackgroundColor',[1 0 0])% set RUN button to red
    433434
    434 %update the output dir
    435 % SubDir=sort(InputTable(:,2)); %set of subdirectories sorted in alphabetical order
    436 % SubDirOut=SubDir{1};
    437 % if numel(SubDir)>1
    438 %     for ilist=2:numel(SubDir)
    439 %         SubDirOut=[SubDirOut '-' SubDir{ilist}];
    440 %     end
    441 % end
    442 % set(handles.OutputSubDir,'String',SubDirOut)
    443 
    444435%------------------------------------------------------------------------
    445436% --- Executes on button press in REFRESH.
     
    448439InputTable=get(handles.InputTable,'Data');
    449440view_set=get(handles.REFRESH,'UserData');
    450 set(handles.REFRESH,'BackgroundColor',[0.7 0.7 0.7])% set REFRESH  button to grey color
     441set(handles.REFRESH,'BackgroundColor',[1 1 0])% set REFRESH  button to yellow color (indicate activation)
    451442drawnow
    452443for iview=view_set
     
    460451    end
    461452    if isempty(i1_series)
    462         [FileName, PathName, filterindex] = uigetfile( ...
     453        [FileName, PathName] = uigetfile( ...
    463454            {'*.xml;*.xls;*.png;*.tif;*.avi;*.AVI;*.nc', ' (*.xml,*.xls, *.png,*.tif, *.avi,*.nc)';
    464455            '*.xml',  '.xml files '; ...
     
    469460            '*.nc','.netcdf files'; ...
    470461            '*.*',  'All Files (*.*)'}, ...
    471             ['unvalid entry at line ' num2str(iview) ', pick a file'],RootPath);
     462            ['unvalid entry at line ' num2str(iview) ', pick a new input file'],RootPath);
    472463        fileinput=[PathName FileName];%complete file name
    473         if isempty(fileinput),return;end %abandon if the operation has been cancelled: no input from browser
     464        if isempty(fileinput) %abandon if the operation has been cancelled: no input from browser
     465            set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  back to red color
     466            return;
     467        end
    474468        [path,name,ext]=fileparts(fileinput);
    475469        display_file_name(handles,fileinput,iview)
     
    478472    end
    479473end
    480 set(handles.REFRESH,'BackgroundColor',[1 0 0])% set REFRESH  button to grey color
    481474set(handles.REFRESH,'Visible','off')
     475set(handles.REFRESH_title,'Visible','off')
    482476set(handles.REFRESH,'UserData',[])
    483477
     
    14621456%% record nbre of output files and starting time for computation for status
    14631457StatusData=get(handles.status,'UserData');
     1458if isfield(StatusData,'OutputFileMode')
    14641459    switch StatusData.OutputFileMode
    14651460        case 'NbInput'
     
    14701465            StatusData.NbOutputFile=str2num(get(handles.num_NbSlice,'String'));
    14711466    end
     1467end
    14721468StatusData.TimeStart=now;
    14731469set(handles.status,'UserData',StatusData)
     
    27422738NbSlice=str2num(get(handles.num_NbSlice,'String'));
    27432739set(handles.num_NbProcess,'String',num2str(NbSlice))
    2744 
    2745 
Note: See TracChangeset for help on using the changeset viewer.