Changeset 152 for trunk/SRC/ToBeReviewed/WIDGET
- Timestamp:
- 08/10/06 09:01:35 (18 years ago)
- Location:
- trunk/SRC/ToBeReviewed/WIDGET
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro
r150 r152 64 64 ELSE type = widget_info(actionid, /combobox_gettext) 65 65 case type of 66 'plt':procedure = 'plt'67 'pltz':procedure = 'pltz'68 66 'pltz diag up':procedure = 'pltz' 69 67 'pltz diag dn':procedure = 'pltz' 70 'pltt':procedure = 'pltt'71 68 'pltt diag up':procedure = 'pltt' 72 69 'pltt diag dn':procedure = 'pltt' … … 81 78 'z':procedure = 'plt1d' 82 79 't':procedure = 'pltt' 80 ELSE:procedure = type 83 81 endcase 84 82 ; -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/longclickaction.pro
r150 r152 57 57 !y = (extractatt(top_uvalue, 'yenvs'))[numdessin] 58 58 ;------------------------------------------------------------ 59 actionid = widget_info(event.top, find_by_uname = 'action') 60 type = widget_info(actionid, /combobox_gettext) 61 ;------------------------------------------------------------ 59 62 ; Change the domain box: 60 63 ;------------------------------------------------------------ … … 63 66 y = [coor[1, 0], coor[1, 1]] 64 67 domainid = widget_info(event.top, find_by_uname = 'domain') 65 boxzoom = [x, y] 68 IF type EQ 'pltv' THEN BEGIN 69 currentfile = extractatt(top_uvalue, 'currentfile') 70 listgrid = (*(extractatt(top_uvalue, 'fileparameters'))[currentfile]).listgrid 71 listvar = (*(extractatt(top_uvalue, 'fileparameters'))[currentfile]).listvar 72 vlstid = widget_info(event.top, find_by_uname = 'varlist') 73 namevar = widget_info(vlstid, /combobox_gettext) 74 indexvar = where(listvar EQ namevar) 75 vargrid = strupcase(listgrid[indexvar]) 76 grille, -1, glam, gphi 77 boxzoom = [glam[x[0], y[0]], glam[x[1], y[1]], gphi[x[0], y[0]], gphi[x[1], y[1]]] 78 ENDIF ELSE boxzoom = [x, y] 66 79 ; Do we have to pass the boxzoom in indexes ??? 67 80 currentplot = (extractatt(top_uvalue, 'smallin'))[2]-1 … … 88 101 widget_control, domainid, set_value = boxzoom 89 102 ; 90 ;------------------------------------------------------------91 actionid = widget_info(event.top, find_by_uname = 'action')92 type = widget_info(actionid, /combobox_gettext)93 103 case uval.press of 94 104 1:BEGIN -
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro
r150 r152 25 25 'datafilename':BEGIN 26 26 widget_control, event.id, get_value = filename 27 filename = isafile(filename = filename[0], iodir = iodir, /onlync, title = 'data file name') 27 filename = isafile(filename = filename[0], /onlync $ 28 , title = 'data file name', /tryfind, /fully_qualify_path) 28 29 if size(filename, /type) NE 7 then BEGIN 29 30 widget_control, event.id, set_value = '' … … 33 34 END 34 35 'browse datafilename':BEGIN 35 filename = isafile( iodir = iodir, /onlync, title = 'data file name')36 filename = isafile(/onlync, title = 'data file name', /tryfind, /fully_qualify_path) 36 37 if size(filename, /type) NE 7 then return 37 38 widget_control, widget_info(event.handler, find_by_uname = 'datafilename') $ … … 102 103 datafilename = datafilename[0] 103 104 IF datafilename EQ '' THEN return 104 datafilename = isafile(filename = datafilename, iodir = iodir, /onlync, title = 'data file name') 105 datafilename = isafile(filename = datafilename, /tryfind, /onlync $ 106 , title = 'data file name', /fully_qualify_path) 105 107 if size(datafilename, /type) NE 7 then BEGIN 106 108 widget_control, widget_info(event.handler, find_by_uname = 'datafilename') $ … … 266 268 , izmindta:izmindta, izmaxdta:izmaxdta} 267 269 268 res3 = scanfile(res.datafilename, iodir = iodir,_extra = ex)270 res3 = scanfile(res.datafilename, _extra = ex) 269 271 if size(res3, /type) NE 8 then return, -1 270 272 -
trunk/SRC/ToBeReviewed/WIDGET/xxx.pro
r150 r152 229 229 xoff = 0 230 230 yoff = 0 231 pltlst = ['plt' $231 pltlst = ['plt', 'pltv' $ 232 232 , 'pltz', 'pltz diag up', 'pltz diag dn' $ 233 233 , 'pltt', 'pltt diag up', 'pltt diag dn' $
Note: See TracChangeset
for help on using the changeset viewer.