Changeset 427 for trunk/src/set_object.m
- Timestamp:
- May 17, 2012, 11:33:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r424 r427 153 153 % else 154 154 % enable the PLOT (REFRESH) button by default 155 %defaul settings 156 set(get(handles.set_object,'children'),'enable','on') 155 157 set(handles.PLOT,'enable','off') 156 158 % end … … 444 446 ObjectNameNew=ObjectName; 445 447 vers=0;% index of the name 446 while detectname==1448 while ~isempty(detectname) 447 449 detectname=find(strcmp(ObjectNameNew,ListObject),1);%test the existence of the proposed name in the list 448 450 if detectname% if the object name already exists 449 indstr=regexp(ObjectNameNew,'\D'); 451 indstr=regexp(ObjectNameNew,'\D');%indices of non number characters 450 452 if indstr(end)<length(ObjectNameNew) %object name ends by a number 451 453 vers=str2double(ObjectNameNew(indstr(end)+1:end))+1; … … 463 465 set(hhuvmat.ListObject_1,'String',[ListObject;{ObjectName}]);%complement the object list 464 466 set(hhuvmat.ListObject,'Value',IndexObj(2)) 467 set(hhuvmat.ViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object 465 468 UvData.Object{IndexObj(2)}=[];%initiate a new object (empty yet) 466 469 end … … 529 532 set(hhuvmat.edit_object,'Value',1) % set uvmat to object edit mode to allow further object update 530 533 set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow 534 set(hhuvmat.ViewField,'Value',1) 531 535 532 536 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.