function schema
% Defines properties for @mergedlg class.
%
%   Author(s): James G. Owen
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:39:43 $

%% Register class 
p = findpackage('tsguis');
c = schema.class(p,'preprocdlg',findclass(p,'viewdlg'));

%% Enumerations
if isempty(findtype('detrend'))
    schema.EnumType('detrend', {'constant','linear'});
end
if isempty(findtype('filtertype'))
    schema.EnumType('filtertype', {'ideal','transfer','firstord'});
end
if isempty(findtype('filterband'))
    schema.EnumType('filterband', {'pass','stop'});
end

%% Public properties

%% Interpolation attributes
p = schema.prop(c, 'Rowremove', 'on/off');
p.FactoryValue = 'off';
p = schema.prop(c, 'Rowor', 'on/off');
p.FactoryValue = 'off';
p = schema.prop(c, 'Interpolate', 'on/off');
p.FactoryValue = 'off';
p = schema.prop(c, 'method', 'string');
p.FactoryValue = 'zoh';

% Filter attributes
p = schema.prop(c, 'Detrendactive', 'on/off');
p.FactoryValue = 'off';
p = schema.prop(c, 'Filteractive', 'on/off');
p.FactoryValue = 'off';
p = schema.prop(c, 'Detrendtype', 'detrend');
p.FactoryValue = 'constant';
p = schema.prop(c, 'Filter', 'filtertype');
p.FactoryValue = 'firstord';
p = schema.prop(c, 'Band', 'filterband');
p.FactoryValue = 'pass';
p = schema.prop(c, 'Range', 'MATLAB array');
p.Description = 'frequency range';
p.FactoryValue = [0 0.1];
p = schema.prop(c, 'Acoeffs', 'MATLAB array');
p.FactoryValue = [1 -0.5];
p.Description = 'numerator coefficients';
p = schema.prop(c, 'Bcoeffs', 'MATLAB array');
p.FactoryValue = 1;
p.Description = 'denominator coefficients';
p = schema.prop(c, 'Timeconst', 'double');
p.Description = 'time constant';
p.FactoryValue = 10;

