- Timestamp:
- 05/09/06 11:47:44 (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildreadcommand.pro
r47 r49 31 31 ;------------------------------------------------------------ 32 32 ;------------------------------------------------------------ 33 FUNCTION buildreadcommand, base, snameexp, procedure, type, BO ITE = boite, COMPLETE = complete, NAMEFIELD = namefield33 FUNCTION buildreadcommand, base, snameexp, procedure, type, BOXZOOM = boxzoom, COMPLETE = complete, NAMEFIELD = namefield 34 34 ;------------------------------------------------------------ 35 35 ; on recuper les ID des differents widgets … … 44 44 ;------------------------------------------------------------ 45 45 widget_control,base, get_uvalue = top_uvalue 46 numdessinin = (extractatt(top_uvalue, ' petitin'))[2]-147 numdessinout = (extractatt(top_uvalue, ' petitout'))[2]-146 numdessinin = (extractatt(top_uvalue, 'smallin'))[2]-1 47 numdessinout = (extractatt(top_uvalue, 'smallout'))[2]-1 48 48 ;--------------- 49 49 ; determination du nom du fichier … … 103 103 sdate1 = strtrim(date1, 1) & sdate2 = strtrim(date2, 1) 104 104 ;--------------- 105 ; determination du nom de la bo ite105 ; determination du nom de la boxzoom 106 106 ;--------------- 107 if NOT keyword_set(bo ite) then widget_control, domainid, get_value = boite107 if NOT keyword_set(boxzoom) then widget_control, domainid, get_value = boxzoom 108 108 ; ecriture de celle-ci sous forme d''un string 109 box = '['+strtrim(bo ite[0], 1)110 for i = 1, (n_elements(bo ite)-1) < (3+2*(strpos(type, 'z') EQ -1)) do $111 box = box+', '+strtrim(bo ite[i], 1)109 box = '['+strtrim(boxzoom[0], 1) 110 for i = 1, (n_elements(boxzoom)-1) < (3+2*(strpos(type, 'z') EQ -1)) do $ 111 box = box+', '+strtrim(boxzoom[i], 1) 112 112 if strpos(type, 'z') NE -1 then BEGIN 113 113 @common … … 140 140 , 'if keyword_set(date2in) then date2 = date2in else date2 = '+sdate2 $ 141 141 , 'litchamp('+funclec_name+'('+snomvariable+', date1, date2,'+snameexp $ 142 +',parent='+strtrim(base, 1)+',bo ite='+box+' $',', filename='+sfilename+' $' $142 +',parent='+strtrim(base, 1)+',boxzoom='+box+' $',', filename='+sfilename+' $' $ 143 143 , ', _extra=mixstru(ex, extra)))'] 144 144 (*top_uvalue[1, findline(top_uvalue, 'champs')])[*, numdessinout] = [filename, nomvariable] … … 149 149 , 'if keyword_set(date2in) then date2 = date2in else date2 = '+sdate2 $ 150 150 , 'litchamp('+funclec_name+'('+snomvariable+', date1, date2,'+snameexp $ 151 +',parent='+strtrim(base, 1)+',bo ite='+box+' $',', filename='+sfilename+' $' $151 +',parent='+strtrim(base, 1)+',boxzoom='+box+' $',', filename='+sfilename+' $' $ 152 152 , ', _extra=mixstru(ex, extra)))'] 153 153 ENDELSE
Note: See TracChangeset
for help on using the changeset viewer.