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

vb_batch_list_new

PURPOSE ^

make batch list gui.

SYNOPSIS ^

function fig = vb_batch_list_new(proj_root, proj_name, proj_file, bmgr)

DESCRIPTION ^

 make batch list gui.
 [USAGE] 
     fig = vb_batch_list_new(<proj_root>,<proj_name>,<proj_file>, <bmgr>]);
 [IN]
     proj_root : project root directory
     proj_name : project name
     proj_file : project filename
          bmgr : vb_batch_mgr object
 [OUT]
   fig : figure handle of gui

 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 fig = vb_batch_list_new(proj_root, proj_name, proj_file, bmgr)
0002 % make batch list gui.
0003 % [USAGE]
0004 %     fig = vb_batch_list_new(<proj_root>,<proj_name>,<proj_file>, <bmgr>]);
0005 % [IN]
0006 %     proj_root : project root directory
0007 %     proj_name : project name
0008 %     proj_file : project filename
0009 %          bmgr : vb_batch_mgr object
0010 % [OUT]
0011 %   fig : figure handle of gui
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 %
0017 % --- Previous check
0018 %
0019 if ~exist('proj_root', 'var')
0020     error('proj_root is a required parameter.');
0021 end
0022 if ~exist('proj_name', 'var')
0023     error('proj_name is a required parameter.');
0024 end
0025 if ~exist('proj_file', 'var')
0026     error('proj_file is a required parameter.');
0027 end
0028 if ~exist('bmgr', 'var')
0029     error('bmgr is a required parameter.');
0030 end
0031 
0032 %
0033 % --- Main Procedure
0034 %
0035 fig = openfig('vb_batch_list.fig');
0036 
0037 H = guihandles(fig);
0038 H.figure = fig;
0039 
0040 data = struct;
0041 data.H = H;
0042 
0043 % this gui edits this builder
0044 data.bmgr = bmgr;
0045 data.initial_state = bmgr;
0046 
0047 data.proj_root = proj_root;
0048 data.proj_name = proj_name;
0049 data.proj_file = proj_file;
0050 
0051 set(H.builder_name_edit, 'String', vb_batch_mgr_get_name(bmgr));
0052 set(H.proj_name_edit, 'String', proj_name);
0053 set(H.proj_root_edit, 'String', proj_root);
0054 
0055 % save data
0056 guidata(fig, data);
0057 
0058 % update screen
0059 vb_batch_list_update_screen(fig);

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