Home > vbmeg > functions > common > utility > @file_dialog > private > current_dir_popup.m

current_dir_popup

PURPOSE ^

search directoryを選択するpop-up menuのCallback関数

SYNOPSIS ^

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

DESCRIPTION ^

 search directoryを選択するpop-up menuの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 [] = current_dir_popup(obj, eventdata, dialog)
0002 % search directoryを選択するpop-up menuの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   
0010 % current検索directoryを変更する。
0011 hist_dir = this.public.hist_dir;
0012 this.public.current_dir = hist_dir{v};
0013 this.private.current_file = {};
0014 
0015 % current_driveをcurrent directoryのDrive番号に変更し、
0016 % drive_info構造体を更新する。(Windows環境のみ)
0017 this = set_drive_info(this);
0018 
0019 % DialogのGUIのpropertyを更新する。
0020 set(dialog, 'UserData', this);
0021 set_gui_property(dialog);

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