;+ ; NAME: ; qLine_SequenceOrder ; PURPOSE: ; Returns the order in which curves are to be processed ; CATEGORY: ; qLine widget ; CALLING SEQUENCE: FUNCTION qLine_SequenceOrder, state ; INPUTS: ; state array[1]; type: structure ; qLine state structure ; OUTPUTS: ; seq array[state.n]; type: integer ; index array with processing order ; INCLUDE: @compile_opt.pro ; On error, return to caller ; PROCEDURE: ; Reads the values of the state.wid_sequence widgets. ; MODIFICATION HISTORY: ; JULY-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ;- ; Get sequence in which to process the curves seq = -1 FOR i=0,state.n-1 DO BEGIN widget_control, state.wid_sequence[i], get_value=tmp seq = [seq, tmp] ENDFOR seq = sort(seq[1:*]) ;IF n_elements(uniq(seq, sort(seq))) LT state.n THEN seq = indgen(state.n) RETURN, seq & END