Changeset 625 for trunk/src/view_field.m


Ignore:
Timestamp:
May 2, 2013, 7:51:42 PM (11 years ago)
Author:
sommeria
Message:

system of object creation by mouse ilmproved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r622 r625  
    9090        set(handles.Scalar,'Visible','off')
    9191    end
     92   
    9293    errormsg=fill_GUI(PlotParamOut,hObject);
    9394    if ~isempty(errormsg)
     
    394395function CheckFixLimits_Callback(hObject, eventdata, handles)
    395396test=get(handles.CheckFixLimits,'Value');
    396 if test
    397     set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    398 else
    399     set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7])
    400 end
     397% if test
     398%     set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     399% else
     400%     set(handles.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7])
     401% end
    401402update_plot(handles)
    402403 
     
    406407%-------------------------------------------------------------------
    407408if get(handles.CheckFixAspectRatio,'Value')
    408     set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0])
    409409    update_plot(handles);
    410410else
    411     set(handles.CheckFixAspectRatio,'BackgroundColor',[0.7 0.7 0.7])
    412411    update_plot(handles);
    413412end
     
    417416%-------------------------------------------------------------------
    418417set(handles.CheckFixAspectRatio,'Value',1)% select the fixed aspect ratio button
    419 set(handles.CheckFixAspectRatio,'BackgroundColor',[1 1 0])% mark in yellow
    420418update_plot(handles);
    421419
     
    600598%------------------------------------------------------------------------
    601599set(handles.CheckFixLimits,'Value',1) %suppress auto mode
    602 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     600% set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    603601update_plot(handles);
    604602
     
    607605%------------------------------------------------------------------------
    608606set(handles.CheckFixLimits,'Value',1) %suppress auto mode
    609 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     607% set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    610608update_plot(handles);
    611609
     
    614612%------------------------------------------
    615613set(handles.CheckFixLimits,'Value',1) %suppress auto mode
    616 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     614% set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    617615update_plot(handles);
    618616
     
    621619%------------------------------------------------------------------------
    622620set(handles.CheckFixLimits,'Value',1) %suppress auto mode
    623 set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
     621% set(handles.CheckFixLimits,'BackgroundColor',[1 1 0])
    624622update_plot(handles);
    625623
     
    635633%--------------------------------------------
    636634set(handles.CheckFixScalar,'Value',1) %suppress auto mode
    637 set(handles.CheckFixScalar,'BackgroundColor',[1 1 0])
     635% set(handles.CheckFixScalar,'BackgroundColor',[1 1 0])
    638636update_plot(handles)
    639637
     
    642640%--------------------------------------------
    643641test=get(handles.CheckFixScalar,'Value');
    644 if test
    645     set(handles.CheckFixScalar,'BackgroundColor',[1 1 0])
    646 else
    647     set(handles.CheckFixScalar,'BackgroundColor',[0.7 0.7 0.7])
    648     update_plot(handles);
    649 %     set(handles.MinA,'String',num2str(ScalOut.MinA,3))
    650 %     set(handles.MaxA,'String',num2str(ScalOut.MaxA,3))
    651 end
     642% if test
     643%     set(handles.CheckFixScalar,'BackgroundColor',[1 1 0])
     644% else
     645%     set(handles.CheckFixScalar,'BackgroundColor',[0.7 0.7 0.7])
     646%     update_plot(handles);
     647% %     set(handles.MinA,'String',num2str(ScalOut.MinA,3))
     648% %     set(handles.MaxA,'String',num2str(ScalOut.MaxA,3))
     649% end
    652650
    653651%-------------------------------------------------------------------
     
    699697    update_plot(handles);
    700698    %set(handles.VecScale,'String',num2str(ScalOut.VecScale,3))
    701     set(handles.FixVec,'BackgroundColor',[0.7 0.7 0.7])
     699%     set(handles.FixVec,'BackgroundColor',[0.7 0.7 0.7])
    702700end
    703701
Note: See TracChangeset for help on using the changeset viewer.