Changeset 144 for trunk/src/uvmat.m


Ignore:
Timestamp:
Nov 30, 2010, 12:03:49 AM (13 years ago)
Author:
sommeria
Message:

connection between uvmat and get_field improved, cleaning of GUI get_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r141 r144  
    23072307    if isequal(FileType,'netcdf')  %read the first nc field
    23082308        if isequal(FieldName,'get_field...')% read the field names on the interface get_field.
    2309             hget_field=findobj(allchild(0),'Name','uvmat_field');%find the get_field... GUI
     2309            hget_field=findobj(allchild(0),'Name','get_field');%find the get_field... GUI
    23102310            if isempty(hget_field)
    23112311                hget_field= get_field(filename);%open the get_field GUI   
    2312                 set(hget_field,'name','uvmat_field')
     2312              %  set(hget_field,'name','get_field')
    23132313            elseif UvData.NewSeries% refresh the fet_field GUI for a new series
    23142314                delete(hget_field)
    23152315                hget_field= get_field(filename);%open the get_field GUI
    2316                 set(hget_field,'name','uvmat_field')%rename  get_field GUI for the 'slave' mode
     2316                set(hget_field,'name','get_field')%rename  get_field GUI for the 'slave' mode
    23172317            end
    23182318            hhget_field=guidata(hget_field);
     2319            set(hhget_field.list_fig,'Value',1)
     2320            set(hhget_field.list_fig,'String',{'uvmat'})
    23192321            funct_list=get(hhget_field.ACTION,'UserData');
    23202322            funct_index=get(hhget_field.ACTION,'Value');
     
    23352337    if ~isempty(filename_1) && ~test_keepdata_1 && isequal(FileType_1,'netcdf') %read the second file
    23362338        if isequal(FieldName_1,'get_field...')% read the field names on the interface get_field.
    2337             hget_field_1=findobj(allchild(0),'Name','uvmat_field_1');%find the get_field... GUI
     2339            hget_field_1=findobj(allchild(0),'Name','get_field_1');%find the get_field... GUI
    23382340            if isempty(hget_field_1)
    23392341                 hget_field_1= get_field(filename_1);%open the get_field GUI
    2340                  set(hget_field_1,'name','uvmat_field_1')
     2342                 set(hget_field_1,'name','get_field_1')
     2343            elseif UvData.NewSeries% refresh the fet_field GUI for a new series
     2344                delete(hget_field_1)
     2345                hget_field_1= get_field(filename);%open the get_field GUI
     2346                set(hget_field_1,'name','get_field_1')%rename  get_field GUI for the 'slave' mode
    23412347            end
    23422348            hhget_field_1=guidata(hget_field_1);%handles of GUI elements in get_field
     2349            set(hhget_field_1.list_fig,'Value',1)
     2350            set(hhget_field_1.list_fig,'String',{'uvmat'})
    23432351            funct_list=get(hhget_field_1.ACTION,'UserData');
    23442352            funct_index=get(hhget_field_1.ACTION,'Value');
     
    32163224     set_veltype_display(veltype_handles,0) % unvisible civ buttons
    32173225     filename=read_file_boxes(handles);
    3218      hget_field=findobj(allchild(0),'name','uvmat_field');
    3219      if isempty(hget_field)
    3220          hget_field=get_field(filename);
    3221          set(hget_field,'Name','uvmat_field')       
     3226     hget_field=findobj(allchild(0),'name','get_field');
     3227     if ~isempty(hget_field)
     3228         delete(hget_field)
    32223229     end
     3230     hget_field=get_field(filename);
     3231     set(hget_field,'Name','get_field')       
     3232     hhget_field=guidata(hget_field);
     3233     set(hhget_field.list_fig,'Value',1)
     3234     set(hhget_field.list_fig,'String',{'uvmat'})
     3235     set(handles.transform_fct,'Value',1)% no transform by default
     3236     set(handles.path_transform,'String','')
    32233237    return %no action
    32243238end
     
    33803394     hget_field=get_field(filename);
    33813395     set(hget_field,'name','get_field_1')
     3396     hhget_field=guidata(hget_field);
     3397     set(hhget_field.list_fig,'Value',1)
     3398     set(hhget_field.list_fig,'String',{'uvmat'})
     3399     set(handles.transform_fct,'Value',1)% no transform by default
     3400     set(handles.path_transform,'String','')
    33823401    return %no action
    33833402end
Note: See TracChangeset for help on using the changeset viewer.