Changeset 150 for trunk/src/mouse_up.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r102 r150 24 24 function mouse_up(hObject,eventdata,handles) 25 25 MouseAction='none'; %default 26 zoomstate=0;%default 26 test_zoom=0;%default 27 currentfig=hObject; 28 hhcurrentfig=guidata(currentfig); 29 test_zoom=get(hhcurrentfig.zoom,'Value'); 27 30 if ~exist('handles','var') 28 31 handles=get(gcbo,'UserData'); … … 35 38 MouseAction=UvData.MouseAction;% set the mouse action (edit, create objects...) 36 39 end 37 zoomstate=get(hhuvmat.zoom,'Value');40 % test_zoom=get(hhuvmat.zoom,'Value'); 38 41 end 39 42 currentfig=hObject; … … 206 209 end 207 210 %zoom in by a factor 2 if no new figure is created 208 if zoomstate211 if test_zoom 209 212 xy=get(currentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates 210 213 if isequal(get(currentfig,'SelectionType'),'normal');%if left button has been pressed … … 268 271 269 272 % editing calibration point 270 if ~ zoomstate&& strcmp(MouseAction,'calib')273 if ~test_zoom && strcmp(MouseAction,'calib') 271 274 h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI 272 275 hh_geometry_calib=guidata(h_geometry_calib); … … 314 317 315 318 %display the data of the current object selected with the mouse right click 316 if isequal(get(currentfig,'SelectionType'),'alt') && ~ zoomstate&& (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create'))319 if isequal(get(currentfig,'SelectionType'),'alt') && ~test_zoom && (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create')) 317 320 hother=findobj('Tag','proj_object');%find all the proj objects 318 321 nbselect=0;
Note: See TracChangeset
for help on using the changeset viewer.