function out=getinfo(c)
%GETINFO returns a structure containing information about the component
%   I=GETINFO(CSL_SIG_LOOP)
%
%   I.Name - component informal name
%   I.Type - component general category 2-letter code
%   I.Desc - short description of the component
%   I.ValidChildren - shows whether or not component can have children
%          ValidChildren={logical(0)} for no children
%          ValidChildren={logical(1)} if children are allowed
%   I.att - component attributes
%   I.attx - information about component attributes
%   I.ref - reference structure
%   I.x - temporary attribute page handle structure


%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 2000/03/29 14:56:42 $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

out=getprotocomp(c);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

out.Name = xlate('Block Loop');
out.Type = 'SL';
out.Desc = xlate('Applies all subcomponents to desired Simulink blocks.');
out.ValidChildren={logical(1)};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

out.att.LoopType='$auto';
out.att.ObjectList={''};

%out.att.isSortList=logical(0);
out.att.SortBy='$alphabetical';

out.att.isFilterList=logical(0);
out.att.FilterTerms={'BlockType','Scope'};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

loopInfo=loopblock(c.zslmethods);

out.attx.SortBy=struct('String','Sort blocks ',...
   'enumValues',{loopInfo.sortCode},...
   'enumNames',{loopInfo.sortName},...
   'UIcontrol','popupmenu');

out.attx.LoopType=struct('String','',...
   'enumValues',{{'$auto','$list'}},...
   'enumNames',{{'see attribute.m','Manual - use block list:'}},...
   'UIcontrol','radiobutton');

out.attx.ObjectList=struct('String','',...
   'UIcontrol','multiedit',...
   'isParsedText',logical(1));

%out.attx.isSortList.String='Sort blocks in list';

out.attx.isFilterList.String='Search for property name/property value pairs';
