Changeset 296 for trunk/src/civ.m


Ignore:
Timestamp:
Nov 22, 2011, 1:39:47 PM (12 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r292 r296  
    102102
    103103%% load the list of previously browsed files in menu Open
    104  dir_perso=prefdir; % path to the directory .matlab for personal data
    105  profil_perso=fullfile(dir_perso,'uvmat_perso.mat');% personal data file uvmauvmat_perso.mat' in .matlab
    106  if exist(profil_perso,'file')
    107       h=load (profil_perso);
    108       if isfield(h,'MenuFile')
    109           set(handles.MenuFile_1,'Label',h.MenuFile{1})
    110           %set(handles.MenuFile_1,'Label',h.MenuFile_1);
    111       end
    112 %       if isfield(h,'MenuFile_2')
    113 %           set(handles.MenuFile_2,'Label',h.MenuFile_2);
    114 %       end
    115 %       if isfield(h,'MenuFile_3')
    116 %           set(handles.MenuFile_3,'Label',h.MenuFile_3);
    117 %       end
    118 %       if isfield(h,'MenuFile_4')
    119 %           set(handles.MenuFile_4,'Label',h.MenuFile_4);
    120 %       end
    121 %       if isfield(h,'MenuFile_5')
    122 %           set(handles.MenuFile_5,'Label',h.MenuFile_5);
    123 %       end
     104dir_perso=prefdir; % path to the directory .matlab for personal data
     105profil_perso=fullfile(dir_perso,'uvmat_perso.mat');% personal data file uvmauvmat_perso.mat' in .matlab
     106if exist(profil_perso,'file')
     107    h=load (profil_perso);
     108    if isfield(h,'MenuFile')
     109        for ifile=1:min(length(h.MenuFile),5)
     110            eval(['set(handles.MenuFile_' num2str(ifile) ',''Label'',h.MenuFile{ifile});'])
     111        end
     112    end
    124113end
    125114
     
    202191    set(handles.CheckPatch2,'Value',1)
    203192    enable_patch2(handles,1)
    204     set(handles.frame_subdirciv2,'BackgroundColor',[1 1 0])
     193%     set(handles.frame_subdirciv2,'BackgroundColor',[1 1 0])
    205194    set(handles.ListPairCiv2,'Enable','On')
    206195    enable_pair1(handles,'off')
     
    1001990end
    1002991set(handles.ListPairCiv1,'UserData',displ_num);
    1003 find_netcpair_civ1(hObject, eventdata, handles)
    1004 find_netcpair_civ2(hObject, eventdata, handles)
     992find_netcpair_civ1( handles)
     993find_netcpair_civ2(handles)
    1005994
    1006995%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.