Changeset 40 for trunk/src/set_object.m
- Timestamp:
- Mar 9, 2010, 9:00:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r2 r40 514 514 oldfile=' '; 515 515 huvmat=findobj('Tag','uvmat'); 516 % if isempty(huvmat)517 % huvmat=findobj(allchild(0),'Name','series');518 % end519 516 hchild=get(huvmat,'Children'); 520 517 hrootpath=findobj(hchild,'Tag','RootPath'); … … 525 522 end 526 523 end 527 %[FileName,PathName] = uigetfile('*.civ','Select a .civ file',oldfile)528 524 [FileName, PathName, filterindex] = uigetfile( ... 529 525 {'*.xml;*.mat', ' (*.xml,*.mat)'; … … 534 530 testblank=findstr(fileinput,' ');%look for blanks 535 531 if ~isempty(testblank) 536 errordlg('forbidden input file name: contain blanks')532 msgbox_uvmat('ERROR','forbidden input file name: contain blanks') 537 533 return 538 534 end 539 535 sizf=size(fileinput); 540 if (~ischar(fileinput)| ~isequal(sizf(1),1)),return;end536 if (~ischar(fileinput)||~isequal(sizf(1),1)),return;end 541 537 542 538 %read the file … … 553 549 if ~isempty(huvmat) 554 550 hhuvmat=guidata(huvmat); 555 % set(hhuvmat.POINTS,'Value',0)556 % set(hhuvmat.POINTS,'BackgroundColor',[0 1 0])%put unactivated buttons to green557 % set(hhuvmat.LINE,'Value',0)558 % set(hhuvmat.LINE,'BackgroundColor',[0 1 0])%put unactivated buttons to green559 % set(hhuvmat.PATCH,'Value',0)560 % set(hhuvmat.PATCH,'BackgroundColor',[0 1 0])%put unactivated buttons to green561 % set(hhuvmat.PLANE,'Value',0)562 % set(hhuvmat.PLANE,'BackgroundColor',[0 1 0])%put unactivated buttons to green563 % set(hhuvmat.VOLUME,'Value',0)564 % set(hhuvmat.VOLUME,'BackgroundColor',[0 1 0])%put unactivated buttons to green565 % if ~isequal(title,'MASK')566 % eval(['set(hhuvmat.' title ',''Value'',1)'])567 % eval(['set(hhuvmat.' title ',''BackgroundColor'',[1 1 0])'])568 % end569 551 end 570 552 menu=get(handles.TITLE,'String');
Note: See TracChangeset
for help on using the changeset viewer.