Home > functions > job > job_edit_area_dir > job_edit_area_registration.m

job_edit_area_registration

PURPOSE ^

SYNOPSIS ^

function job_edit_area_registration(inst_id)

DESCRIPTION ^

 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 job_edit_area_registration(inst_id)
0002 %
0003 % Copyright (C) 2011, ATR All Rights Reserved.
0004 % License : New BSD License(see VBMEG_LICENSE.txt)
0005 
0006 global vbmeg_inst;
0007 
0008 % Global variables
0009 Iextract = vbmeg_inst.editarea{inst_id}.Iextract;
0010 areafile = vbmeg_inst.editarea{inst_id}.areafile;
0011 lb1 = vbmeg_inst.editarea{inst_id}.lb1; 
0012 
0013 % Registration
0014 str = inputdlg('Enter key of the area', ...
0015            'Area registration',1,{'new area'});
0016 if length(str)>=1 & ~isempty(str{1}), 
0017   Area.key = str{1};
0018   Area.Iextract = Iextract{1};
0019   vb_add_area(areafile,Area);
0020 end
0021 
0022 % Add new area to list box
0023 set(lb1,'String',vb_get_keyset_area(areafile));
0024

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