Changeset 384 for trunk/src/civ.m
- Timestamp:
- Mar 11, 2012, 11:47:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r382 r384 23 23 %TODO: search range 24 24 25 % Last Modified by GUIDE v2.5 27-Jan-2012 00:32:3325 % Last Modified by GUIDE v2.5 10-Mar-2012 22:32:10 26 26 % Begin initialization code - DO NOT EDIT 27 27 gui_Singleton = 1; … … 281 281 end 282 282 set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished 283 283 284 %------------------------------------------------------------------------ 284 285 % --- general function activated for an input file series … … 1035 1036 %could be included in get_mask callback ? 1036 1037 if isequal(get(handles.CheckMask,'Value'),1) 1037 maskname=get(handles. txt_Mask,'String');1038 maskname=get(handles.Mask,'String'); 1038 1039 if ~exist(maskname,'file') 1039 1040 get_mask_civ1_Callback(hObject, eventdata, handles); … … 1041 1042 end 1042 1043 if isequal(get(handles.CheckMask,'Value'),1) 1043 maskname=get(handles. txt_Mask,'String');1044 maskname=get(handles.Mask,'String'); 1044 1045 if ~exist(maskname,'file') 1045 1046 get_mask_fix1_Callback(hObject, eventdata, handles); … … 1047 1048 end 1048 1049 if isequal(get(handles.CheckMask,'Value'),1) 1049 maskname=get(handles. txt_Mask,'String');1050 maskname=get(handles.Mask,'String'); 1050 1051 if ~exist(maskname,'file') 1051 1052 get_mask_civ2_Callback(hObject, eventdata, handles); … … 1053 1054 end 1054 1055 if isequal(get(handles.CheckMask,'Value'),1) 1055 maskname=get(handles. txt_Mask,'String');1056 maskname=get(handles.Mask,'String'); 1056 1057 if ~exist(maskname,'file') 1057 1058 get_mask_fix2_Callback(hObject, eventdata, handles); … … 3310 3311 maskval=get(handles.CheckMask,'Value'); 3311 3312 if isequal(maskval,0) 3312 set(handles. txt_Mask,'String','')3313 set(handles.Mask,'String','') 3313 3314 else 3314 3315 mask_displ='no mask'; %default … … 3343 3344 set(handles.CheckMask,'Value',1) 3344 3345 end 3345 set(handles. txt_Mask,'String',mask_displ)3346 set(handles. txt_Mask,'String',mask_displ)3347 set(handles. txt_Mask,'String',mask_displ)3346 set(handles.Mask,'String',mask_displ) 3347 set(handles.Mask,'String',mask_displ) 3348 set(handles.Mask,'String',mask_displ) 3348 3349 end 3349 3350 … … 3354 3355 maskval=get(handles.CheckMask,'Value'); 3355 3356 if isequal(maskval,0) 3356 set(handles. txt_Mask,'String','')3357 set(handles.Mask,'String','') 3357 3358 else 3358 3359 mask_displ='no mask'; %default … … 3385 3386 set(handles.CheckMask,'Value',1) 3386 3387 end 3387 set(handles. txt_Mask,'String',mask_displ)3388 set(handles. txt_Mask,'String',mask_displ)3388 set(handles.Mask,'String',mask_displ) 3389 set(handles.Mask,'String',mask_displ) 3389 3390 end 3390 3391 … … 3395 3396 maskval=get(handles.CheckMask,'Value'); 3396 3397 if isequal(maskval,0) 3397 set(handles. txt_Mask,'String','')3398 set(handles.Mask,'String','') 3398 3399 else 3399 3400 mask_displ='no mask'; %default … … 3423 3424 set(handles.CheckMask,'Value',0) 3424 3425 end 3425 set(handles. txt_Mask,'String',mask_displ)3426 set(handles.Mask,'String',mask_displ) 3426 3427 end 3427 3428 … … 3676 3677 % stage=4;%default 3677 3678 if strcmp(parent_tag,'Civ1') 3678 set(handles. txt_Mask,'Visible','on')3679 set(handles. txt_Mask,'String',filemask)3679 set(handles.Mask,'Visible','on') 3680 set(handles.Mask,'String',filemask) 3680 3681 set(handles.CheckMask,'Value',1) 3681 3682 end … … 3688 3689 % % stage=4; 3689 3690 % end 3690 % set(handles. txt_Mask(stage:end),'Visible','on')3691 % set(handles. txt_Mask(stage:end),'String',filemask)3691 % set(handles.Mask(stage:end),'Visible','on') 3692 % set(handles.Mask(stage:end),'String',filemask) 3692 3693 % set(handles.CheckMask(stage:end),'Value',1) 3693 3694 else … … 4380 4381 4381 4382 function NomType_Callback(hObject, eventdata, handles) 4382 4383 set(handles.RootPath,'BackgroundColor',[1 1 0])%paint RootName edit box in yellow to indicate that the file input is proceeding 4384 RootPath=get(handles.RootPath,'String'); 4385 RootFile=get(handles.RootFile,'String'); 4386 ref_i=str2num(get(handles.ref_i,'String')); 4387 ref_j=str2num(get(handles.ref_j,'String')); 4388 NomType=get(handles.NomType,'String'); 4389 ImaExt=get(handles.ImaExt,'String'); 4390 fileinput=fullfile_uvmat(RootPath,'',RootFile,ImaExt,NomType,ref_i,[],ref_j); 4391 errormsg=display_file_name(handles,fileinput); 4392 if ~isempty(errormsg) 4393 msgbox_uvmat('ERROR',errormsg) 4394 end 4395 set(handles.RootPath,'BackgroundColor',[1 1 1])%paint RootName back to white to indicate that the file input is finished 4383 4396 4384 4397 % --- Executes on selection change in ListProgram.
Note: See TracChangeset
for help on using the changeset viewer.