Changeset 701 for trunk/src/mouse_motion.m
- Timestamp:
- Dec 13, 2013, 10:51:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r699 r701 50 50 test_zoom_draw=0; 51 51 test_object=0; %test for object editing or creation 52 test_create_object=0; 52 53 test_edit_object=0;% edit test for mouse shape: an arrow 53 54 test_ruler=0;%test for active ruler … … 56 57 if ~isempty(huvmat) 57 58 hhuvmat=guidata(huvmat);%handles of the elements in uvma 59 test_create_object=strcmp(get(hhuvmat.MenuObject,'checked'),'on'); 58 60 test_edit_object=get(hhuvmat.CheckEditObject,'Value'); 59 61 test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on'); … … 109 111 test_zoom_draw=test_draw && isequal(AxeData.Drawing,'zoom')&& isfield(AxeData,'CurrentOrigin') && isequal(get(gcf,'SelectionType'),'normal'); 110 112 test_object=test_draw && isfield(AxeData,'CurrentObject') && ~isempty(AxeData.CurrentObject) && ishandle(AxeData.CurrentObject); 111 if ~test_edit_object && ~test_ruler 113 if CheckZoom 114 pointershape='zoom'; 115 elseif CheckZoomFig 116 pointershape='zoomfig'; 117 elseif ~test_edit_object && ~test_ruler 112 118 if CheckZoom 113 119 pointershape='zoom'; 114 elseif CheckZoomFig 115 pointershape='zoomfig'; 116 elseif test_draw 117 pointershape='crosshair';%set pointer with cross shape (default when mouse is over an axis) 120 elseif test_draw|| test_create_object 121 pointershape='crosshair';%set pointer with cross shape 118 122 else 119 pointershape='fullcross';%set pointer with cross shape(default when mouse is over an axis)123 pointershape='fullcross';%set pointer with large cross (default when mouse is over an axis) 120 124 end 121 125 end
Note: See TracChangeset
for help on using the changeset viewer.