Changeset 650 for trunk/src/set_object.m


Ignore:
Timestamp:
Jun 17, 2013, 6:46:06 PM (11 years ago)
Author:
sommeria
Message:

bugs corrected: handles.TimeName? in uvmat, 0_OAR emptied for culter computations with series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r648 r650  
    182182if ~isempty(huvmat)
    183183    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
    188186    % deselect the object in ListObject when view_field is closed
    189187    if isempty(findobj(allchild(0),'Tag','view_field'))
     
    455453ListObject=get(hhuvmat.ListObject,'String');% list of objects displayed in uvmat
    456454
    457 if isequal(get(hhuvmat.edit_object,'Value'),0) %we append a new object
     455if isequal(get(hhuvmat.CheckEditObject,'Value'),0) %we append a new object
    458456    ListObject=[ListObject;{''}];
    459457    IndexObj=length(ListObject);
     
    491489set(hhuvmat.ListObject,'String',ListObject);%complement the object list
    492490set(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_object
     491set(hhuvmat.CheckViewObject,'Value',1)% indicate that the currently selected objected is viewed on set_object
    494492check_handle=isfield(UvData.ProjObject{IndexObj},'DisplayHandle') && isfield(UvData.ProjObject{IndexObj}.DisplayHandle,'uvmat')...
    495493    && ~isempty(UvData.ProjObject{IndexObj}.DisplayHandle.uvmat) && ishandle(UvData.ProjObject{IndexObj}.DisplayHandle.uvmat);
     
    554552            set(hview_field,'Position',Data.GUISize)
    555553        end
    556         %  set(hhuvmat.ViewField,'Value',1)% indicate that the field projection on the current object is plotted in view_field
    557554    end
    558555end
     
    586583
    587584%% 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')
     585set(hhuvmat.CheckEditObject,'Value',1) % set uvmat to object edit mode to allow further object update
     586set(hhuvmat.CheckViewField,'Value',1)
    593587set(handles.PLOT,'BackgroundColor',[1 0 0])
    594588%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.