Changeset 650 for trunk/src/set_object.m
- Timestamp:
- Jun 17, 2013, 6:46:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r648 r650 182 182 if ~isempty(huvmat) 183 183 hhuvmat=guidata(huvmat); 184 % set(hhuvmat.ViewObject_1,'value',0)% desactivate the two view buttons 185 set(hhuvmat.ViewObject,'value',0)% 186 set(hhuvmat.edit_object,'Value',0)% desactivate the edit option 187 % set(hhuvmat.edit_object,'BackgroundColor',[0.7 0.7 0.7])%put unactivated buttons to gree 184 set(hhuvmat.CheckViewObject,'value',0)% 185 set(hhuvmat.CheckEditObject,'Value',0)% desactivate the edit option 188 186 % deselect the object in ListObject when view_field is closed 189 187 if isempty(findobj(allchild(0),'Tag','view_field')) … … 455 453 ListObject=get(hhuvmat.ListObject,'String');% list of objects displayed in uvmat 456 454 457 if isequal(get(hhuvmat. edit_object,'Value'),0) %we append a new object455 if isequal(get(hhuvmat.CheckEditObject,'Value'),0) %we append a new object 458 456 ListObject=[ListObject;{''}]; 459 457 IndexObj=length(ListObject); … … 491 489 set(hhuvmat.ListObject,'String',ListObject);%complement the object list 492 490 set(hhuvmat.ListObject_1,'String',ListObject);%complement the object list 493 set(hhuvmat. ViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object491 set(hhuvmat.CheckViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object 494 492 check_handle=isfield(UvData.ProjObject{IndexObj},'DisplayHandle') && isfield(UvData.ProjObject{IndexObj}.DisplayHandle,'uvmat')... 495 493 && ~isempty(UvData.ProjObject{IndexObj}.DisplayHandle.uvmat) && ishandle(UvData.ProjObject{IndexObj}.DisplayHandle.uvmat); … … 554 552 set(hview_field,'Position',Data.GUISize) 555 553 end 556 % set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field557 554 end 558 555 end … … 586 583 587 584 %% update the GUI uvmat 588 % set(hhuvmat.MenuEditObject,'enable','on') 589 set(hhuvmat.edit_object,'Value',1) % set uvmat to object edit mode to allow further object update 590 %set(hhuvmat.edit_object,'BackgroundColor',[1 1 0]);% paint the edit text in yellow 591 set(hhuvmat.ViewField,'Value',1) 592 % set(handles.PLOT,'enable','on') 585 set(hhuvmat.CheckEditObject,'Value',1) % set uvmat to object edit mode to allow further object update 586 set(hhuvmat.CheckViewField,'Value',1) 593 587 set(handles.PLOT,'BackgroundColor',[1 0 0]) 594 588 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.