[49] | 1 | PRO updatewidget, base, NOBOXZOOM = noboxzoom, NODATES = nodates, NOTYPE = notype |
---|
[2] | 2 | ;---------------------------------------------------------------------- |
---|
[114] | 3 | ; |
---|
| 4 | compile_opt idl2, strictarrsubs |
---|
| 5 | ; |
---|
[2] | 6 | widget_control,base, get_uvalue = top_uvalue |
---|
[49] | 7 | smallin = extractatt(top_uvalue, 'smallin') |
---|
| 8 | numdessinin = smallin[2]-1 |
---|
[2] | 9 | ; |
---|
| 10 | ;---------------------------------------------------------------------- |
---|
| 11 | widget_control, base, update = 0 |
---|
| 12 | ;-------------- |
---|
| 13 | ; date1 et date2 |
---|
| 14 | ;-------------- |
---|
| 15 | if keyword_set(nodates) then begin |
---|
| 16 | date1 = 0 |
---|
| 17 | date2 = 0 |
---|
| 18 | ENDIF ELSE BEGIN |
---|
| 19 | dates = (extractatt(top_uvalue, 'dates'))[*, numdessinin] |
---|
| 20 | date1 = dates[0] & date2 = dates[1] |
---|
| 21 | ENDELSE |
---|
| 22 | ;-------------- |
---|
[69] | 23 | ; domain |
---|
[2] | 24 | ;-------------- |
---|
[49] | 25 | boxzoom = (extractatt(top_uvalue, 'domaines'))[*, numdessinin] |
---|
| 26 | if total(boxzoom) EQ 0 then boxzoom = -1 |
---|
| 27 | if keyword_set(noboxzoom) then boxzoom = 0 |
---|
[2] | 28 | ;-------------- |
---|
[69] | 29 | ; varinfo: filename & namevar |
---|
[2] | 30 | ;-------------- |
---|
[69] | 31 | varinfo = (extractatt(top_uvalue, 'varinfo'))[*, numdessinin] |
---|
| 32 | filename = varinfo[0] & nomvar = varinfo[1] |
---|
[2] | 33 | ; |
---|
| 34 | if filename NE '' OR nomvar NE '' THEN BEGIN |
---|
[49] | 35 | changefile, base, filename, fieldname = nomvar, BOXZOOM = boxzoom, DATE1 = date1, DATE2 = date2 |
---|
[2] | 36 | ENDIF ELSE BEGIN |
---|
| 37 | if date1 NE 0 then begin |
---|
| 38 | date1id = widget_info(base, find_by_uname = 'calendar1') |
---|
| 39 | widget_control, date1id, set_value = date1 |
---|
| 40 | endif |
---|
| 41 | if date2 NE 0 then begin |
---|
| 42 | date2id = widget_info(base, find_by_uname = 'calendar2') |
---|
| 43 | widget_control, date2id, set_value = date2 |
---|
| 44 | endif |
---|
[49] | 45 | if keyword_set(boxzoom) then BEGIN |
---|
[2] | 46 | domainid = widget_info(base, find_by_uname = 'domain') |
---|
[49] | 47 | widget_control, domainid, set_value = boxzoom |
---|
[2] | 48 | endif |
---|
| 49 | ENDELSE |
---|
| 50 | ;-------------- |
---|
| 51 | ; exextra |
---|
| 52 | ;-------------- |
---|
| 53 | if n_elements(*((extractatt(top_uvalue, 'exextra'))[numdessinin])) NE 0 then begin |
---|
| 54 | exextra = *((extractatt(top_uvalue, 'exextra'))[numdessinin]) |
---|
| 55 | specifieid = widget_info(base,find_by_uname = 'specifie') |
---|
| 56 | widget_control, specifieid, set_value = exextra |
---|
| 57 | endif |
---|
| 58 | ;-------------- |
---|
[69] | 59 | ; text command |
---|
[2] | 60 | ;-------------- |
---|
[69] | 61 | txtcmd = (extractatt(top_uvalue, 'txtcmd'))[numdessinin] |
---|
| 62 | if txtcmd NE '' then begin |
---|
| 63 | txtcmdid = widget_info(base, find_by_uname = 'txtcmd') |
---|
| 64 | widget_control, txtcmdid, set_value = txtcmd |
---|
[2] | 65 | endif |
---|
| 66 | ;-------------- |
---|
| 67 | ; graphtype |
---|
| 68 | ;-------------- |
---|
| 69 | if NOT keyword_set(notype) then BEGIN |
---|
| 70 | graphtype = (extractatt(top_uvalue, 'types'))[numdessinin] |
---|
| 71 | if graphtype NE '' then begin |
---|
| 72 | actionid = widget_info(base,find_by_uname = 'action') |
---|
[69] | 73 | widget_control, actionid, get_value = action_value |
---|
| 74 | widget_control, actionid, set_combobox_select = (where(action_value EQ graphtype))[0] |
---|
[2] | 75 | endif |
---|
| 76 | endif |
---|
| 77 | ;-------------- |
---|
| 78 | widget_control, base, update = 1 |
---|
| 79 | ;-------------- |
---|
| 80 | ;---------------------------------------------------------------------- |
---|
| 81 | return |
---|
| 82 | end |
---|