function reset(h)

%% Resets the preprocdlg into a state where all the preprocessing options
%% are off

%% Switch off detrend
set(h.Handles.CHKdetrend,'Value',false)
feval(get(h.Handles.CHKdetrend,'Callback'),h.Handles.CHKdetrend,[]);

%% Switch off filter
set(h.Handles.CHKfilter,'Value',false)
feval(get(h.Handles.CHKfilter,'Callback'),h.Handles.CHKfilter,[])

%% Switch off remove times
set(h.Handles.CHKremovetimes,'Value',false)
feval(get(h.Handles.CHKremovetimes,'Callback'),h.Handles.CHKremovetimes,[])

%% Switch off interpolate
set(h.Handles.CHKinterp,'Value',false)
feval(get(h.Handles.CHKinterp,'Callback'),h.Handles.CHKinterp,[])
