Home > functions > common > utility > @file_dialog > private > dir_listbox.m

dir_listbox

PURPOSE ^

ディレクトリ一覧を表示するlist boxのCallback関数

SYNOPSIS ^

function [] = dir_listbox(obj, eventdata, dialog)

DESCRIPTION ^

 ディレクトリ一覧を表示するlist boxのCallback関数

 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 [] = dir_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 
0009 v = get(obj, 'Value');
0010 str = get(obj, 'String');
0011 
0012 % current_検索directoryを更新する。
0013 this.public.current_dir =...
0014     fullfile( this.public.current_dir, deblank(str(v,:)) );
0015 % current_検索directoryを絶対パスにする。
0016 cdir = pwd;
0017 cd( this.public.current_dir );
0018 this.public.current_dir = pwd;
0019 cd( cdir );
0020 
0021 this.private.current_file = {};
0022 
0023 
0024 % drive_info構造体を更新する。(Windows環境のみ)
0025 this = set_drive_info(this);
0026 
0027 % DialogのGUIのpropertyを更新する。
0028 set(dialog, 'UserData', this);
0029 set_gui_property(dialog);
0030

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005