Changeset 648 for trunk/src/series.m


Ignore:
Timestamp:
Jun 9, 2013, 10:31:58 PM (11 years ago)
Author:
sommeria
Message:

get_field updated, several bugs corrected,open_uvmat suppressd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r644 r648  
    500500end
    501501
     502%% detect root name, nomenclature and indices in the input file name:
     503[FilePath,FileName,FileExt]=fileparts(fileinput);
     504% detect the file type, get the movie object if relevant, and look for the corresponding file series:
     505% the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists
     506[RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,FileInfo,MovieObject,i1,i2,j1,j2]=find_file_series(FilePath,[FileName FileExt]);
     507if isempty(RootFile)&&isempty(i1_series)
     508    errormsg='no input file in the series';
     509    return
     510end
     511if strcmp(FileType,'txt')
     512    edit(fileinput)
     513    return
     514elseif strcmp(FileType,'xml')
     515    editxml(fileinput)
     516     return
     517elseif strcmp(FileType,'figure')
     518    open(fileinput)
     519     return
     520end
     521
    502522%% enable other menus and uicontrols
    503523set(handles.MenuOpen_insert,'Enable','on')
     
    512532drawnow
    513533
    514 %% detect root name, nomenclature and indices in the input file name:
    515 [FilePath,FileName,FileExt]=fileparts(fileinput);
    516 % detect the file type, get the movie object if relevant, and look for the corresponding file series:
    517 % the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists
    518 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,FileInfo,MovieObject,i1,i2,j1,j2]=find_file_series(FilePath,[FileName FileExt]);
    519 if isempty(RootFile)&&isempty(i1_series)
    520     errormsg='no input file in the series';
    521     return
    522 end
     534
    523535
    524536%% fill the list of file series
     
    18451857end
    18461858set(handles.ActionName,'BackgroundColor',[1 1 0])
    1847 huigetfile=findobj(allchild(0),'tag','status_display')
     1859huigetfile=findobj(allchild(0),'tag','status_display');
    18481860if ~isempty(huigetfile)
    18491861    delete(huigetfile)
     
    25982610set(handles.PairString,'ColumnWidth',{Pos(3)-5})
    25992611
    2600 
     2612%------------------------------------------------------------------------
    26012613% --- Executes on button press in status.
     2614%------------------------------------------------------------------------
    26022615function status_Callback(hObject, eventdata, handles)
    26032616
     
    26282641%------------------------------------------------------------------------   
    26292642% launched by selecting a file on the list
     2643%------------------------------------------------------------------------
    26302644function view_file(hObject, eventdata)
    2631 %------------------------------------------------------------------------
     2645
    26322646list=get(hObject,'String');
    26332647index=get(hObject,'Value');
     
    26692683%------------------------------------------------------------------------   
    26702684% launched by refreshing the status figure
     2685%------------------------------------------------------------------------
    26712686function refresh_GUI(hfig)
    2672 %------------------------------------------------------------------------
     2687
    26732688htitlebox=findobj(hfig,'tag','titlebox');
    26742689hlist=findobj(hfig,'tag','list');
Note: See TracChangeset for help on using the changeset viewer.