function simoutdefbtns
%
% Function: rundefbtns
% 
% Usage: rundefbtns
% 
% Description:
%    Initializes the Windows Definition Window
%    Handles and graphics elements.
%    Returns a vector to those elements.
%

% Version SWD970804
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This matlab source code was originally     %
% developed as part of "DIAMOND" at          %
% Los Alamos National Laboratory. It may     %
% be copied, modified, and distributed in    %
% any form, provided:                        %
%  a) This notice accompanies the files and  %
%     appears near the top of all source     %
%     code files.                            %
%  b) No payment or commercial services are  %
%     received in exchange for the code.     %
%                                            %
% Original copyright is reserved by the      %
% Regents of the University of California,   %
% in addition to Scott W. Doebling, Phillip  %
% J. Cornwell, Erik G. Straser, and Charles  %
% R. Farrar.                                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

global HANDLES

%%===========================================
%% Strain energy/curvature buttons
%%===========================================

%====================================
% General buttons parameters
%====================================
top=.3;
lft=.3;
wd=.4;
ht=.4;
sp=.01;

%====================================
% Set up the console frame
%=====================================
frmpos=[lft top wd ht];

HANDLES.outinpdef.comm(1)=uicontrol(HANDLES.hfigdmnd, ...
        'Style','Frame', ...
        'Position',frmpos, ...
        'BackgroundColor',[.5 .5 .5]);

%
% Common text message windows
%
HANDLES.outinpdef.comm(2)=uicontrol(HANDLES.hfigdmnd, ...
   'style','text',...
   'Position',[lft+.05 top+.35 .15 .02],...
   'string','Desired time vector name?');


HANDLES.outinpdef.comm(3)=uicontrol(HANDLES.hfigdmnd, ...
   'style','text',...
   'Position',[lft+.21 top+.35 .15 .02],...
   'string','Desired output matrix name?');

%
%  Command buttons
%

HANDLES.outinpdef.comm(4)=uicontrol(HANDLES.hfigdmnd, ...
   'style','pushbutton', ...
   'position',[lft+.12 top+.05 .05 .03],...
   'string','OK',...
   'callback','simoutokhand');

HANDLES.outinpdef.comm(5)=uicontrol(HANDLES.hfigdmnd, ...
   'style','pushbutton', ...
   'position',[lft+.22 top+.05 .05 .03],...
   'string','Cancel',...
   'callback','hideallbtns');
%
%  Edit text boxes
%
HANDLES.outinpdef.edt(1)=uicontrol(HANDLES.hfigdmnd, ...
   'style','edit',...
   'BackgroundColor',[1 1 1],...
   'Position',[lft+.05 top+.32 .15 .03],...
   'string','');

HANDLES.outinpdef.edt(2)=uicontrol(HANDLES.hfigdmnd, ...
   'style','edit',...
   'BackgroundColor',[1 1 1],...
   'Position',[lft+.21 top+.32 .15 .03],...
   'string','');


set(HANDLES.outinpdef.comm,'visible','off');
set(HANDLES.outinpdef.edt,'visible','off');


return
