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