function pj = preparepointers( pj )
%PREPAREPOINTERS Set Pointers of all open Figures to Watch. 
%   Saves current value for restoration by RESTOREPOINTERS.
%
%   See also RESTOREPOINTER

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/01 02:54:07 $

%Let user know we are working and get rid of XOR cross hair cursor
if strcmp( pj.Driver, 'mfile' )
    pj.AllFigures = [];
    return
end

pj.AllFigures = findall(0,'type','figure');
if length(pj.AllFigures) > 0
    pj.AllPointers = get( pj.AllFigures, 'pointer');
    set( pj.AllFigures, 'pointer', 'watch')
end
