callback function for uimenu 'Help'. [USAGE] project_mgr_uimenu_file_callback(<fig>, <hObj>); [IN] fig : figure handle of project_mgr gui. hObj : event component handle [OUT] none Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function project_mgr_uimenu_help_callback(fig, hObj) 0002 % callback function for uimenu 'Help'. 0003 % [USAGE] 0004 % project_mgr_uimenu_file_callback(<fig>, <hObj>); 0005 % [IN] 0006 % fig : figure handle of project_mgr gui. 0007 % hObj : event component handle 0008 % [OUT] 0009 % none 0010 % 0011 % Copyright (C) 2011, ATR All Rights Reserved. 0012 % License : New BSD License(see VBMEG_LICENSE.txt) 0013 0014 % 0015 % --- Previous check 0016 % 0017 if ~exist('fig', 'var') || isempty(fig) || ~ishandle(fig) 0018 error('invalid figure handle is specified.'); 0019 end 0020 if ~exist('fig', 'var') || isempty(hObj) 0021 error('hObj is a required parameter.'); 0022 end 0023 0024 % 0025 % --- Main Procedure 0026 % 0027 0028 % load data (@see project_mgr) 0029 data = guidata(fig); 0030 H = data.H; % component handles 0031 0032 switch(hObj) 0033 case H.help_overview 0034 url = vb_users_manual_url('Overview'); 0035 vb_browser_show(url); 0036 case H.help_startup 0037 url = vb_users_manual_url('Project manager startup'); 0038 vb_browser_show(url); 0039 end