==============================================
    ϥ vb_input_settings
==============================================

* ؿ
	[items, cancel] = vb_input_settings(items, title [,save_func])

       items: Ϥ˴ؤ
       title: ΥȥСɽʸ
  save_func : (ץ)
              ѥ᡼¸ܥ򲡤줿˸ƤФؿϥɥ
              feval(save_func, items)ȤơƤФ롣
              itemsΥѥ᡼Ѵ¸ӤꤷƤ롣
              vb_input_settings(items, title, @save_func)Τ褦˥뤹롣

* itemsν
MATLABΥץåȤΥץѥƥΤ褦ˡ
'ץѥƥ̾1', '1', 'ץѥƥ̾2', '2'Τ褦ꤹ롣

** ץѥƥ

[Ūʥץѥƥ]
type  : ɬܥץѥƥͤμ̤ꤹ롣
        directory selection     : ǥ쥯ȥ
        single file selection   : ե
        multiple file selection : ʣե
        string input            : 1ʸ

title : ɬܥץѥƥGUIκ¦ꥹȥܥåɽ줿ꡢ
        եΥȥ˻Ѥ줿ꤹ롣
        ͤݤμ̻ҤȤƻѤΤǡʣԲ(ײ)
value : 

help  : ץʥץѥƥdescriptionΤȤɽʸ

[üץѥƥ]
extension: type, (single|multiple) selectionλͭʥץѥƥ
           򤹤եγĥҤꤹ롣(㡧'.OMM')


*
=================

% 
items = {
  {'type', 'directory selection', 'value', pwd, 'title', 'FS SUBJECT directory', 'help', 'The help of FS_SUBJECT directory},...
  {'type', 'single file selection', 'extension', '.img', 'title', 'Image file', 'help', 'The help of Image file'}, ...
  {'type', 'string input', 'title', 'Subject ID', 'help', 'The help of Subject ID'},
};

% ɽ롣OKܥCANCELܥ󤬲ޤ֤ʤ
[items, cancel] = vb_input_settings(items, 'Run FreeSurfer'); 

% GUIϤ줿ͤμ
Nitem = length(items);
for k=1:Nitem
   item  = items{k};
   title = vb_input_settings_get_prop(item, 'title');
   switch(title)
       case 'Image file'
           image_file = vb_input_settings_get_prop(item, 'Value');
       case 'FS SUBJECT directory'
           out_dir = vb_input_settings_get_prop(item, 'Value');
       case 'Subject ID'
           id = vb_input_settings_get_prop(item, 'Value');
   end
end
% ǡid, out_dir, image_file줿

