ファイル名一覧を表示するlist boxのCallback関数 Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [] = fname_listbox(obj, eventdata, dialog) 0002 % ファイル名一覧を表示するlist boxのCallback関数 0003 % 0004 % Copyright (C) 2011, ATR All Rights Reserved. 0005 % License : New BSD License(see VBMEG_LICENSE.txt) 0006 0007 this = get(dialog, 'UserData'); 0008 v = get(obj, 'Value'); 0009 str = get(obj, 'String'); 0010 0011 % 選択ファイル名を更新する。 0012 this.private.current_file = {}; 0013 for ii=1:length(v) 0014 this.private.current_file{ii} = deblank( str(v(ii),:) ); 0015 end 0016 0017 % DialogのGUIのpropertyを更新する。 0018 set(dialog, 'UserData', this); 0019 set_gui_property(dialog);