function update_gui(hFig)
%UPDATE_GUI Update the entire Filter Design & Analysis GUI.

%   Author(s): P. Costa, P. Pacheco and R. Losada
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 2000/06/13 21:23:47 $ 

% Get the GUI's data struture stored in the figure's userdata.
ud = get(hFig,'Userdata');

update_titlebar(hFig);
update_menus('update_all',hFig);
update_currentfilterinfo('update_all',hFig); % Gets latest ud.filter.
update_modebtns(hFig,'initialize'); % Updates all the tabs.

% If FD Tbx is installed, update the Quantize filter checkbox
% (which is mode independent).
if ud.flags.fdqexists,
    update_quantizationswitch(hFig);
end

% Perform analysis and update the analysis frame (plots).
update_analysisframe(hFig);

update_actionbtn('update_enablestate',hFig);
update_status(hFig,'Ready');

% [EOF] update_gui.m
