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

project_mgr_gui_reset

PURPOSE ^

reset project_mgr gui.

SYNOPSIS ^

function project_mgr_gui_reset(fig)

DESCRIPTION ^

 reset project_mgr gui.
 [USAGE]
    project_mgr_gui_reset(<fig>);
 [IN]
    fig : figure handle of project_mgr gui.
 [OUT]
    none

 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 project_mgr_gui_reset(fig)
0002 % reset project_mgr gui.
0003 % [USAGE]
0004 %    project_mgr_gui_reset(<fig>);
0005 % [IN]
0006 %    fig : figure handle of project_mgr gui.
0007 % [OUT]
0008 %    none
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('fig', 'var') || isempty(fig) || ~ishandle(fig)
0017     error('invalid figure handle is specified.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 
0024 % load data (@see project_mgr)
0025 data = guidata(fig);
0026 H = data.H; % component handles
0027 
0028 % project information reset
0029 set(H.project_name_edit, 'String', '');
0030 set(H.project_root_edit, 'String', '');
0031 
0032 % check model parameter reset
0033 set(H.brain_parm_edit, 'String', '');
0034 set(H.fmri_parm_edit, 'String', '');
0035 set(H.meg_parm_edit, 'String', '');
0036 project_mgr_init_ix_for_check_model(fig);
0037 
0038 % parameter reset
0039 set(H.parameter_display_edit, 'String', '');
0040 
0041 % history listbox reset
0042 set(H.history_listbox, 'String', '');
0043 set(H.history_listbox, 'Value', 1);

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