Changeset 648 for trunk/src/series.m
- Timestamp:
- Jun 9, 2013, 10:31:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r644 r648 500 500 end 501 501 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]); 507 if isempty(RootFile)&&isempty(i1_series) 508 errormsg='no input file in the series'; 509 return 510 end 511 if strcmp(FileType,'txt') 512 edit(fileinput) 513 return 514 elseif strcmp(FileType,'xml') 515 editxml(fileinput) 516 return 517 elseif strcmp(FileType,'figure') 518 open(fileinput) 519 return 520 end 521 502 522 %% enable other menus and uicontrols 503 523 set(handles.MenuOpen_insert,'Enable','on') … … 512 532 drawnow 513 533 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 523 535 524 536 %% fill the list of file series … … 1845 1857 end 1846 1858 set(handles.ActionName,'BackgroundColor',[1 1 0]) 1847 huigetfile=findobj(allchild(0),'tag','status_display') 1859 huigetfile=findobj(allchild(0),'tag','status_display'); 1848 1860 if ~isempty(huigetfile) 1849 1861 delete(huigetfile) … … 2598 2610 set(handles.PairString,'ColumnWidth',{Pos(3)-5}) 2599 2611 2600 2612 %------------------------------------------------------------------------ 2601 2613 % --- Executes on button press in status. 2614 %------------------------------------------------------------------------ 2602 2615 function status_Callback(hObject, eventdata, handles) 2603 2616 … … 2628 2641 %------------------------------------------------------------------------ 2629 2642 % launched by selecting a file on the list 2643 %------------------------------------------------------------------------ 2630 2644 function view_file(hObject, eventdata) 2631 %------------------------------------------------------------------------ 2645 2632 2646 list=get(hObject,'String'); 2633 2647 index=get(hObject,'Value'); … … 2669 2683 %------------------------------------------------------------------------ 2670 2684 % launched by refreshing the status figure 2685 %------------------------------------------------------------------------ 2671 2686 function refresh_GUI(hfig) 2672 %------------------------------------------------------------------------ 2687 2673 2688 htitlebox=findobj(hfig,'tag','titlebox'); 2674 2689 hlist=findobj(hfig,'tag','list');
Note: See TracChangeset
for help on using the changeset viewer.