Changeset 627 for trunk/src/mouse_up.m


Ignore:
Timestamp:
May 3, 2013, 10:11:43 AM (8 years ago)
Author:
sommeria
Message:

a few bugs repaired, display of the local mouse indication in a separate window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r625 r627  
    172172            set(hhuvmat.edit_object,'Value',1);%           
    173173            set(hhuvmat.edit_object,'Enable','on');%
    174             set(hhuvmat.MenuEditObject,'Enable','on');%
    175             set(hhuvmat.MenuEdit,'Enable','on');%
     174%            set(hhuvmat.MenuEditObject,'Enable','on');%
     175%            set(hhuvmat.MenuEdit,'Enable','on');%
    176176            set(get(h_set_object,'children'),'Enable','on')
    177177        end
     
    376376end
    377377
    378 %% display the data of the current object selected with the mouse right click
    379 if isequal(get(hcurrentfig,'SelectionType'),'alt') && ~CheckZoom && (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create'))
    380     hother=findobj('Tag','proj_object');%find all the proj objects
    381     nbselect=0;
    382     %test the existence of selected objects:
    383     for iproj=1:length(hother);
    384         iselect=isequal(get(hother(iproj),'Selected'),'on');%reset all the proj objects in 'blue' by default
    385         nbselect=nbselect+iselect;
    386     end
    387     hother=findobj('Tag','proj_object','Type','line');%find all the proj objects
    388     set(hother,'Color','b');%reset all the proj objects in 'blue' by default
    389     set(hother,'Selected','off')
    390     hother=findobj('Tag','proj_object','Type','rectangle');
    391     set(hother,'EdgeColor','b');
    392     set(hother,'Selected','off')
    393     hother=findobj('Tag','proj_object','Type','patch');
    394     set(hother,'FaceColor','b');   
    395     if isequal(get(gco,'Type'),'image')
    396         currentobj=get(gco,'parent');%parent axes of the image
    397     else
    398         currentobj=gco;%default
    399     end
    400 %     if ((nbselect==0) && isequal(get(currentobj,'Type'),'axes')) || isequal(currentobj,huvmat)
    401 %         hcurrentfig=get(currentobj,'parent');
    402 %         figname=get(hcurrentfig,'name');
    403 %         eval(['global Data_' figname])
    404 %         eval(['Data_' figname '=get(currentobj,''UserData'')']);
    405 %         evalin('base',['global Data_' figname])%make CurData global in the workspace
    406 %         objtype=get(currentobj,'Type');
    407 %         display(['UserData of ' objtype ':'])
    408 %         evalin('base',['Data_' figname]) %display CurData in the workspace
    409 %         commandwindow %brings the Matlab command window to the front
    410 %     end
    411 end
    412378
    413379%% update
Note: See TracChangeset for help on using the changeset viewer.