Code covered by the BSD License  

Highlights from
choose_profile_limits

image thumbnail
from choose_profile_limits by Kevin Bartlett
Allows user to choose limits of oceanographic profile (e.g., CTD cast)

cpl_makeguiobjects(varargin)
function ObjHndls = cpl_makeguiobjects(varargin)
%
% cpl_makeguiobjects--This m-file was generated automatically by fig2mfile.m.
%
% Running cpl_makeguiobjects.m will generate a set of GUI objects.
%
% This program can accept either zero or three input arguments. The
% optional input arguments are:
%    GuiScale: GUI objects are scaled up or down by this factor; set to 1
%       for no change
%    DeltaFontSize: Text objects' font sizes are changed from the original
%       by this quantity; set to 0 for no change.
%    FigurePosition: The position [left, bottom] of the lower-left hand
%       corner of the figure window in normalised units; set to NaN for no
%       change.

% DO NOT EDIT THIS FILE (unless you really want to). Any changes you make will probably
% disappear if you run fig2mfile.m again. If you want to modify object positions, etc., it is easiest to
% do so using Matlab's guide.m utility. You can then run fig2mfile.m again to regenerate
% this file. If you want to modify object properties that are not set by cpl_makeguiobjects.m,
% set them from outside this function using object tags and/or handles.
%
% cpl_makeguiobjects.m returns "ObjHndls", a vector of handles to the objects created.
%
% Syntax: ObjHndls = cpl_makeguiobjects(<GuiScale,DeltaFontSize,FigurePosition>)

% 2008/05/27, 10:40
% Developed in Matlab 7.4.0.336 (R2007a).
%------------------------------------------------------------------------------

% Handle input arguments.
if nargin == 3
   GuiScale = varargin{1};
   DeltaFontSize = varargin{2};
   FigurePosition = varargin{3};
elseif nargin == 0
   GuiScale = 1;
   DeltaFontSize = 0;
   FigurePosition = NaN;
else
   error([mfilename '.m--Incorrect number of input arguments.']);
end % if

ObjHndls(1) = figure(...
 'Units','pixels',...
 'Position',[403 94 600 604],...
 'Color',[0.701961 0.701961 0.701961],...
 'MenuBar','none',...
 'NumberTitle','off',...
 'Name','cpl',...
 'Tag','cpl_fig');

currFig = ObjHndls(1);

ObjHndls(2) = uipanel(...
 'Units','normalized',...
 'Position',[0.050347 0.019868 0.887153 0.100993],...
 'TitlePosition','lefttop',...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'Tag','uipanel1',...
'Parent',findobj(currFig,'Tag','cpl_fig'));

ObjHndls(3) = axes(...
 'Units','normalized',...
 'Position',[0.120000 0.483444 0.824653 0.448675],...
 'Color',[1 1 1],...
 'Tag','full_ax',...
'Parent',findobj(currFig,'Tag','cpl_fig'));

ObjHndls(4) = axes(...
 'Units','normalized',...
 'Position',[0.120000 0.170000 0.360000 0.230000],...
 'Color',[1 1 1],...
 'Tag','start_ax',...
'Parent',findobj(currFig,'Tag','cpl_fig'));

ObjHndls(5) = axes(...
 'Units','normalized',...
 'Position',[0.582800 0.170000 0.360000 0.230000],...
 'Color',[1 1 1],...
 'Tag','end_ax',...
'Parent',findobj(currFig,'Tag','cpl_fig'));

ObjHndls(6) = uicontrol(...
 'Units','normalized',...
 'Position',[0.039698 0.128205 0.119093 0.717949],...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'HorizontalAlignment','center',...
 'Max',1,...
 'Min',0,...
 'String','Accept',...
 'Value',0,...
 'Style','pushbutton',...
 'Tag','accept_control',...
'Parent',findobj(currFig,'Tag','uipanel1'));

ObjHndls(7) = uicontrol(...
 'Units','normalized',...
 'Position',[0.236295 0.128205 0.119093 0.717949],...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'HorizontalAlignment','center',...
 'Max',1,...
 'Min',0,...
 'String','Reject',...
 'Value',0,...
 'Style','pushbutton',...
 'Tag','reject_control',...
'Parent',findobj(currFig,'Tag','uipanel1'));

ObjHndls(8) = uicontrol(...
 'Units','normalized',...
 'Position',[0.432892 0.128205 0.119093 0.717949],...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'HorizontalAlignment','center',...
 'Max',1,...
 'Min',0,...
 'String','Skip',...
 'Value',0,...
 'Style','pushbutton',...
 'Tag','skip_control',...
'Parent',findobj(currFig,'Tag','uipanel1'));

ObjHndls(9) = uicontrol(...
 'Units','normalized',...
 'Position',[0.629490 0.128205 0.119093 0.717949],...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'HorizontalAlignment','center',...
 'Max',1,...
 'Min',0,...
 'String','Marker',...
 'Value',0,...
 'Style','togglebutton',...
 'Tag','marker_control',...
'Parent',findobj(currFig,'Tag','uipanel1'));

ObjHndls(10) = uicontrol(...
 'Units','normalized',...
 'Position',[0.835539 0.128205 0.119093 0.717949],...
 'FontUnits','points',...
 'FontAngle','normal',...
 'FontName','Helvetica',...
 'FontSize',10,...
 'FontWeight','normal',...
 'BackgroundColor',[0.701961 0.701961 0.701961],...
 'ForegroundColor',[0 0 0],...
 'HorizontalAlignment','center',...
 'Max',1,...
 'Min',0,...
 'String','Quit',...
 'Value',0,...
 'Style','togglebutton',...
 'Tag','quit_control',...
'Parent',findobj(currFig,'Tag','uipanel1'));

% Rescale the GUI and fonts, and reposition the figure window if requested.
if exist('resizeguifig','file')==2
   resizeguifig(GuiScale,gcf);
end % if

if exist('resizeguifonts','file')==2
   resizeguifonts(DeltaFontSize,gcf);
end % if

if exist('repositiongui','file')==2
   if ~any(isnan(FigurePosition))
      repositiongui(FigurePosition,gcf);
   end % if
end % if

Contact us at files@mathworks.com