function fig = reProcWin(reProcDef)
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

h0 = figure('Color',[0.8 0.8 0.8], ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[657 521 349 207], ...
	'Tag','Fig1', ...
	'ToolBar','none','numbertitle','off');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','reProcCB', ...
	'FontSize',0.5, ...
	'FontWeight','demi', ...
        'Position',[0.0343 0.3961 0.4040 0.1497], ...
	'String','MTR', ...
	'Style','checkbox', ...
        'Value',reProcDef.MTR,...
	'Tag','ReProcessMTR');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7019 0.7019 0.7019], ...
	'Callback','reProcCB', ...
	'FontSize',0.5, ...
	'FontWeight','demi', ...
	'Position',[  0.0430    0.8261    0.9083    0.1304],...
	'String','Use current bad record marks', ...
	'Style','checkbox', ...
        'Value',reProcDef.UseCM,...
	'Tag','UseCurrentMarks');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','reProcCB', ...
	'FontSize',0.5, ...
	'FontWeight','demi', ...
        'Position',[0.5444 0.3961 0.4040 0.1497], ...
	'String','MMT', ...
	'Style','checkbox', ...
        'Value',reProcDef.MMT,...
	'Tag','ReProcessMMT');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','reProcCB', ...
	'FontSize',0.5, ...
	'FontWeight','demi', ...
        'Position',[0.0372 0.5507 0.3180 0.1497], ...
	'String','Browse', ...
	'Tag','BadRecFileBrowse');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','reProcCB', ...
	'FontSize',0.5, ...
        'Position',[ 0.5645    0.2415    0.3926    0.1401],...
	'Style','edit', ...
        'String',reProcDef.suffix,...
        'Tag','SetSuffix');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','reProcCB', ...
	'FontSize',0.6, ...
	'FontWeight','demi', ...
        'Position',[0.1972 0.08 0.3123 0.1256], ...
	'String','Run', ...
	'Tag','RunReProcess');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.7 0.7 0.7], ...
	'Callback','reProcCB', ...
	'FontSize',0.6, ...
	'FontWeight','demi', ...
        'Position',[0.5596 0.08 0.3123 0.1256], ...
	'String','Cancel', ...
	'Tag','CancelReProcess');

h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'FontUnits','normalized', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'FontSize',0.9, ...
	'FontWeight','demi', ...
        'Position',[0.0372 0.7198 0.7650 0.0772], ...
	'String','Bad Record File Name   ....', ...
	'Style','text', ...
	'Tag','BadRecFileNameTxt');

h1 = uicontrol('Parent',h0, ...
        'Units','normalized', ...
        'FontUnits','normalized', ...
        'BackgroundColor',[1 1 1], ...
        'Callback','reProcCB', ...
        'FontSize',0.5, ...
        'FontWeight','demi',...
        'Position',[0.4126 0.5555 0.5415 0.140], ...
        'String',reProcDef.File,...
        'Style','edit', ...
        'String',reProcDef.File,...
	'Tag','BadRecFileName');

h1 = uicontrol('Parent',h0, ...
        'Units','normalized', ...
        'BackgroundColor',[0.8 0.8 0.8], ...
        'Position',[0.0515 0.2560 0.4871 0.1111], ...
        'FontSize',0.45, ...
        'FontWeight','demi',...
        'FontUnits','normalized', ...
        'Style','text', ...
        'String','Output Suffix',...
        'Tag','OutputSuffixTxt');

if nargout > 0, fig = h0; end
