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

introduce pltv.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.