0001 function [current_dir, current_file] = visible(this)
0002
0003
0004
0005
0006
0007
0008 this.private.gui_handles = create_gui(this);
0009
0010
0011 UserData = struct('public', this.public, 'private', this.private);
0012
0013 UserData = set_drive_info(UserData);
0014 set(this.private.gui_handles.dialog, 'UserData', UserData, 'Visible', 'on');
0015
0016 set_gui_property(this.private.gui_handles.dialog);
0017
0018
0019 waitfor(this.private.gui_handles.dialog, 'Visible', 'off')
0020
0021
0022 if length( find(get(0, 'children') == this.private.gui_handles.dialog) )
0023
0024 this = get(this.private.gui_handles.dialog, 'UserData');
0025 current_dir = this.public.current_dir;
0026 current_file = this.private.current_file;
0027 delete(this.private.gui_handles.dialog);
0028 else
0029 current_dir = [];
0030 current_file = {};
0031 end
0032