Ignore:
Timestamp:
08/10/06 09:01:35 (18 years ago)
Author:
smasson
Message:

introduce pltv.pro

Location:
trunk/SRC/ToBeReviewed/WIDGET
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/buildcmd.pro

    r150 r152  
    6464  ELSE type = widget_info(actionid, /combobox_gettext) 
    6565  case type of 
    66     'plt':procedure = 'plt' 
    67     'pltz':procedure = 'pltz' 
    6866    'pltz diag up':procedure = 'pltz' 
    6967    'pltz diag dn':procedure = 'pltz' 
    70     'pltt':procedure = 'pltt' 
    7168    'pltt diag up':procedure = 'pltt' 
    7269    'pltt diag dn':procedure = 'pltt' 
     
    8178    'z':procedure = 'plt1d' 
    8279    't':procedure = 'pltt' 
     80    ELSE:procedure = type 
    8381  endcase 
    8482; 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/longclickaction.pro

    r150 r152  
    5757  !y = (extractatt(top_uvalue, 'yenvs'))[numdessin] 
    5858;------------------------------------------------------------ 
     59  actionid = widget_info(event.top, find_by_uname = 'action') 
     60  type = widget_info(actionid, /combobox_gettext) 
     61;------------------------------------------------------------ 
    5962; Change the domain box: 
    6063;------------------------------------------------------------ 
     
    6366  y = [coor[1, 0], coor[1, 1]] 
    6467  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] 
    6679; Do we have to pass the boxzoom in indexes ??? 
    6780  currentplot = (extractatt(top_uvalue, 'smallin'))[2]-1 
     
    88101  widget_control, domainid, set_value = boxzoom 
    89102; 
    90 ;------------------------------------------------------------ 
    91   actionid = widget_info(event.top, find_by_uname = 'action') 
    92   type = widget_info(actionid, /combobox_gettext) 
    93103  case uval.press of 
    94104    1:BEGIN 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/selectfile.pro

    r150 r152  
    2525    'datafilename':BEGIN 
    2626      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) 
    2829      if size(filename, /type) NE 7 then BEGIN  
    2930        widget_control, event.id, set_value = '' 
     
    3334    END 
    3435    '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) 
    3637      if size(filename, /type) NE 7 then return 
    3738      widget_control, widget_info(event.handler, find_by_uname = 'datafilename') $ 
     
    102103      datafilename = datafilename[0] 
    103104      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) 
    105107      if size(datafilename, /type) NE 7 then BEGIN  
    106108        widget_control, widget_info(event.handler, find_by_uname = 'datafilename') $ 
     
    266268          , izmindta:izmindta, izmaxdta:izmaxdta} 
    267269 
    268   res3 = scanfile(res.datafilename, iodir = iodir, _extra = ex) 
     270  res3 = scanfile(res.datafilename, _extra = ex) 
    269271  if size(res3, /type) NE 8 then return,  -1 
    270272 
  • trunk/SRC/ToBeReviewed/WIDGET/xxx.pro

    r150 r152  
    229229  xoff = 0 
    230230  yoff = 0 
    231   pltlst = ['plt' $ 
     231  pltlst = ['plt', 'pltv' $ 
    232232            , 'pltz', 'pltz diag up', 'pltz diag dn' $ 
    233233            , 'pltt', 'pltt diag up', 'pltt diag dn' $ 
Note: See TracChangeset for help on using the changeset viewer.