Changeset 720 for trunk


Ignore:
Timestamp:
Feb 26, 2014, 10:34:05 PM (10 years ago)
Author:
sommeria
Message:

improve index display for civ_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r719 r720  
    20612061end
    20622062
    2063 %% hide j index if useful (for civ in burst mode)
    2064 if isfield(ParamOut,'Hide_j_index')&&isequal(ParamOut.Hide_j_index,'on')
    2065     status_j='off';% no j index visible
     2063%% desable j index if if set by the civ_input GUI
     2064if isfield(ParamOut,'Desable_j_index')&&isequal(ParamOut.Desable_j_index,'on')
     2065    set(handles.num_first_j,'Enable','off')
     2066    set(handles.num_last_j,'Enable','off')
     2067    set(handles.num_incr_j,'Enable','off')
     2068    set(handles.num_incr_j,'String','')
    20662069else
    2067     status_j='on';%default
    2068     if isempty(find(~cellfun(@isempty,SeriesData.j1_series), 1)); % case of empty j indices
    2069         status_j='off'; % no j index needed
    2070     elseif strcmp(get(handles.PairString,'Visible'),'on')
    2071         PairString=get(handles.PairString,'Data');
    2072         check_burst=cellfun(@isempty,regexp(PairString,'^j'));%=0 for burst case, 1 otherwise
    2073         if isempty(find(check_burst, 1))% if all pair string begins by j (burst)
    2074             status_j='off'; % no j index needed for bust case
    2075         end
    2076     end
    2077 end
    2078 enable_j(handles,status_j) % no j index needed
     2070   set(handles.num_first_j,'Enable','on')
     2071    set(handles.num_last_j,'Enable','on')
     2072    set(handles.num_incr_j,'Enable','on')
     2073end
    20792074
    20802075%% NbSlice visibility
Note: See TracChangeset for help on using the changeset viewer.