Changeset 623 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 29, 2013, 11:27:46 PM (8 years ago)
Author:
sommeria
Message:

waitbar system for series improved to aloow use as stand alone fcts.

to add at the head of series fcts:
hseries=findobj(allchild(0),'Tag','series');
RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series
WaitbarHandle?=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series

call to waitbar:

update_waitbar(WaitbarHandle?,index/nbfield)
if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction?'),'queue')

disp('program stopped by user')
break

end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r622 r623  
    34703470if isequal(get(handles.VOLUME,'Value'),1)
    34713471    set(handles.CheckZoom,'Value',0)
    3472     set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])
     3472%     set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])
    34733473    set(handles.edit_vect,'Value',0)
    34743474    edit_vect_Callback(hObject, eventdata, handles)
    34753475    set(handles.edit_object,'Value',0)
    3476     set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
     3476%     set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
    34773477%     set(handles.cal,'Value',0)
    34783478%     set(handles.cal,'BackgroundColor',[0 1 0])
     
    35223522    set(handles.edit_object,'Value',0)
    35233523    set(handles.CheckZoom,'Value',0)
    3524     set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])
    3525     set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
     3524%     set(handles.CheckZoom,'BackgroundColor',[0.7 0.7 0.7])
     3525%     set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
    35263526    set(gcf,'Pointer','arrow')
    35273527else
     
    41604160%  desactivate the edit object mode
    41614161set(handles.edit_object,'Value',0)
    4162 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])
     4162% set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])
    41634163
    41644164%------------------------------------------------------------------------
     
    41864186%%  desactivate the edit object mode
    41874187set(handles.edit_object,'Value',0)
    4188 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])
     4188% set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7])
    41894189
    41904190%% update the  plot on view_field if view_field is already openened
     
    42754275hset_object=findobj(allchild(0),'Tag','set_object');
    42764276if get(handles.edit_object,'Value')
    4277     set(handles.edit_object,'BackgroundColor',[1,1,0]) 
     4277%     set(handles.edit_object,'BackgroundColor',[1,1,0]) 
    42784278    %suppress the other options
    42794279    set(handles.CheckZoom,'Value',0)
     
    42884288    ViewObject_Callback(hObject, eventdata, handles)
    42894289else % desctivate object edit mode
    4290     set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 
     4290%     set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 
    42914291    if ~isempty(hset_object)% open the
    42924292        hhset_object=guidata(hset_object);
     
    48624862set(get(hset_object,'children'),'enable','on')% enable edit action on elements on GUI set_object
    48634863set(handles.edit_object,'Value',0); %suppress the object edit mode
    4864 set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 
     4864% set(handles.edit_object,'BackgroundColor',[0.7,0.7,0.7]) 
    48654865set(handles.delete_object,'Visible','on')
    48664866
     
    51675167set(handles.edit_vect,'Value',0)
    51685168edit_vect_Callback(hObject, eventdata, handles)
    5169 set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
     5169% set(handles.edit_object,'BackgroundColor',[0.7 0.7 0.7])
    51705170set(handles.ListObject,'Value',1)     
    51715171
Note: See TracChangeset for help on using the changeset viewer.