Changeset 395 for trunk/src/read_GUI.m


Ignore:
Timestamp:
Apr 24, 2012, 8:46:32 PM (12 years ago)
Author:
sommeria
Message:

taking into account the xml file for PIV pairs. Comments on read_GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_GUI.m

    r379 r395  
    11% -----------------------------------------------------------------------
    22% --- read a GUI with handle 'handle' producing a structure 'struct'
     3%
     4% The output Matlab structure 'struct' contains the information displayed on
     5% the GUI or a panel with handle 'handle'
     6% The content of a panel with tag 'tag' is displayed as a substructure struct.(tag) (recursive use of read_GUI)
     7% Output of an element with tag 'tag':
     8%     'checkbox','radiobutton','togglebutton': struct.(tag)=value
     9%     'edit': struct.(tag)=string, 
     10%         or, if the tag is in the form by 'num_tag',
     11%         struct.(tag)=str2double(string). If the result is empty the  'UserData' is taken as the default input.
     12%     'listbox','popupmenu': struct.(tag)=selected string, or, if the tag is in the form by 'num_tag', struct.(tag)=str2double(string)
     13%     'table': struct.(tag)=data of the table
     14%
    315function struct=read_GUI(handle)
    416%------------------------------------------------------------------------
     
    5567                        check_input=0;
    5668                end
    57                 if check_input
     69                if check_input%
    5870                    if index==0
    5971                       struct.(tag)=input;
    60                     else
     72                    elseif ~isempty(input)
    6173                       struct.(tag)(index)=input;
    6274                    end
Note: See TracChangeset for help on using the changeset viewer.