function c=attribute(c,action,varargin)
%ATTRIBUTE launches the setup file editor options page

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.4 $  $Date: 2000/03/23 19:36:24 $

c=feval(action,c,varargin{:});

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function c=start(c)

contextFrame=controlsframe(c,'Include Functions');
renderFrame=controlsframe(c,'Table Display');
optFrame=controlsframe(c,'Table Columns');


slCD=getslcdata(c);
c.x.LoopImage=uicontrol(c.x.all,...
   'style','togglebutton',...
   'Enable','inactive',...
   'Value',1,...
   'Cdata',slCD.ModelLarge);
c.x.LoopEcho=uicontrol(c.x.all,...
   'Style','text',...
   'String','Functions from reported blocks in current model',...
   'HorizontalAlignment','left');

c=controlsmake(c);

contextFrame.FrameContent={c.x.LoopImage,[5],...
      {c.x.LoopEcho;[inf 1]}};

optFrame.FrameContent={c.x.isShowParentBlock
   c.x.isShowCallingString};

renderFrame.FrameContent={c.x.TableTitleTitle c.x.TableTitle
   [5] c.x.isBorder};

c.x.LayoutManager={contextFrame
   [5]
   optFrame
   [5]
   renderFrame};


c=resize(c);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function c=refresh(c);
%Update component when switching tabs, moving
%deactivating


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function c=resize(c)

%controlsresize returns the lowest Y position
%reached by any uicontrols in c.x.lowLimit

c=controlsresize(c);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function c=Update(c,whichControl,varargin);

c=controlsupdate(c,whichControl,varargin{:});


%%%%%%%%%%%%%%%%%%%%%%%%%%
function strOnOff=LocOnOff(logOnOff)

if logOnOff
   strOnOff='on';
else
   strOnOff='off';
end

