Home > functions > gui > batch > batch_list > vb_batch_list_update_build_part.m

vb_batch_list_update_build_part

PURPOSE ^

update build part gui

SYNOPSIS ^

function vb_batch_list_update_build_part(fig)

DESCRIPTION ^

 update build part gui
 [USAGE]
    vb_batch_list_update_build_part(<fig>);
 [IN]
    fig : figure handle

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vb_batch_list_update_build_part(fig)
0002 % update build part gui
0003 % [USAGE]
0004 %    vb_batch_list_update_build_part(<fig>);
0005 % [IN]
0006 %    fig : figure handle
0007 %
0008 % Copyright (C) 2011, ATR All Rights Reserved.
0009 % License : New BSD License(see VBMEG_LICENSE.txt)
0010 
0011 %
0012 % --- Previous check
0013 %
0014 if ~exist('fig', 'var') || isempty(fig) || ~ishandle(fig)
0015     error('invalid figure handle is specified.');
0016 end
0017 
0018 %
0019 % --- Main Procedure
0020 %
0021 data = guidata(fig);
0022 
0023 
0024 % Choose IDs for output
0025 Ncreated = vb_batch_mgr_get_num_of_parm_set(data.bmgr);
0026 on_off = 'on';
0027 if Ncreated == 0
0028     on_off = 'off';
0029 end
0030 set(data.H.choose_id_list_push, 'Enable', on_off);
0031 
0032 
0033 % listbox for IDs
0034 [id_list_str] = vb_batch_mgr_get_output_id_string(data.bmgr);
0035 on_off = 'on';
0036 if isempty(id_list_str)
0037     on_off = 'off';
0038 end
0039 set(data.H.batch_output_listbox, 'String', id_list_str);
0040 set(data.H.build_batch_push, 'Enable', on_off);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005