Ignore:
Timestamp:
Jan 19, 2015, 9:29:28 PM (6 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r847 r851  
    12731273iline=str2num(get(handles.CoordLine,'String'));
    12741274xx=double(get(handles.geometry_calib,'CurrentCharacter'));%get the keyboard character
    1275 if ismember(xx,[28 29 30 31])% directional arrow 
     1275if ismember(xx,[28 29 30 31])% directional arrow
    12761276    Coord=get(handles.ListCoord,'Data');
    12771277    switch xx
     
    12871287else
    12881288    set(handles.APPLY,'BackgroundColor',[1 0 1])% paint APPLY in magenta to indicate that the table content has be modified
    1289 end
    1290 
     1289    if ismember(xx,[127 31])% delete, or downward
     1290        Coord=get(handles.ListCoord,'Data');
     1291        iline=str2double(get(handles.CoordLine,'String'));
     1292        if isequal(xx, 31)
     1293            if isequal(iline,size(Coord,1))% arrow downward
     1294                Coord=[Coord;zeros(1,size(Coord,2))];
     1295            end
     1296        else
     1297            Coord(iline,:)=[];% suppress the current line
     1298        end
     1299        set(handles.ListCoord,'Data',Coord);
     1300    end
     1301end
    12911302
    12921303%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.