Home > vbmeg > functions > gui > project_mgr_dir > project_mgr_builder_open.m

project_mgr_builder_open

PURPOSE ^

Open batch builder gui

SYNOPSIS ^

function [data] = project_mgr_builder_open(data)

DESCRIPTION ^

 Open batch builder gui
 [USAGE]
    [data] = project_mgr_open_builder_open(<data>);
 [IN]
    data : project_mgr data
 [OUT]
    data : project_mgr data(updated)

 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 [data] = project_mgr_builder_open(data)
0002 % Open batch builder gui
0003 % [USAGE]
0004 %    [data] = project_mgr_open_builder_open(<data>);
0005 % [IN]
0006 %    data : project_mgr data
0007 % [OUT]
0008 %    data : project_mgr data(updated)
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('data', 'var')
0017     error('data is a required parameter.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 H = data.H;
0024 
0025 if ishandle(data.batch_fig)
0026     figure(data.batch_fig);
0027 else
0028     proj_root = get(H.project_root_edit, 'String');
0029     proj_name = get(H.project_name_edit, 'String');
0030     proj_file = data.project_file;
0031 
0032     % get selected batch builder
0033     idx = get(H.builder_popup, 'Value');
0034     % launch batch buider gui.
0035     data.batch_fig = vb_batch_list_new(proj_root, proj_name, proj_file, ...
0036                                        data.batch_builders{idx});
0037 end
0038 
0039 % GUI state disable
0040 set(H.builder_popup, 'Enable', 'off');
0041 set(H.open_builder_push, 'Enable', 'off');
0042 
0043 %
0044 % --- After check
0045 %
0046 if nargout < 1
0047     error('function caller should receive data.');
0048 end

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005