%DGUIWVDI Demonstrates wavelet display GUI tools in the Wavelet Toolbox. 

%       M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 12-Mar-96.
%	Last Revision: 01-Oct-97.
%       Copyright (c) 1995-98 by The MathWorks, Inc.
% $Revision: 1.4 $

% Demo initialization ====================
if ~exist('DRVShowGUIFlag'), figNumber = 0; end;

clc;
if wshowdrv('init',figNumber)
    if figNumber==0  
        active_fig = wvdtool;
	wenamngr('Inactive',active_fig);
    else
        active_fig = demoguim('startshow',figNumber,'wvdtool');
	wenamngr('Inactive',active_fig);
        wshowdrv('setactfig',figNumber,active_fig);
        return;
    end
end
if exist('wait_mode')~=1 , wait_mode = 1; end
if figNumber , active_fig = wshowdrv('getactfig',figNumber); end

wvdtool('demo',active_fig,'db4');
wenamngr('Inactive',active_fig);
if wshowdrv('pause',figNumber,wait_mode), return; end;

wvdtool('demo',active_fig,'bior4.4');
wenamngr('Inactive',active_fig);
if wshowdrv('pause',figNumber,wait_mode), return; end;

wvdtool('demo',active_fig,'meyr');
wenamngr('Inactive',active_fig);
if wshowdrv('pause',figNumber,wait_mode), return; end;

wvdtool('demo',active_fig,'mexh');
wenamngr('Inactive',active_fig);

if figNumber==0
        wshowdrv('pause',figNumber,wait_mode);
        wvdtool('close',active_fig);
        delete(active_fig)
end
