Ignore:
Timestamp:
05/09/06 13:04:45 (18 years ago)
Author:
pinsard
Message:

upgrade of COMPOUND_WIDGET according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/ToBeReviewed/WIDGET/COMPOUND_WIDGET/cw_miseenpage.pro

    r49 r51  
    66   widget_control, event.top, get_uvalue=top_uvalue 
    77; 
    8    petitin = extractatt(top_uvalue, 'petitin') 
    9    numdessinin = petitin[2]-1 
    10    petitout = extractatt(top_uvalue, 'petitout') 
     8   smallin = extractatt(top_uvalue, 'smallin') 
     9   numdessinin = smallin[2]-1 
     10   smallout = extractatt(top_uvalue, 'smallout') 
    1111; 
    1212   if uval.name EQ 'undo' then begin 
     
    1717; si on ne change pas le nombre de colonnes, on sort 
    1818      if uval.name EQ 'column' then $ 
    19        if event.index+1 EQ petitin[0] THEN $ 
     19       if event.index+1 EQ smallin[0] THEN $ 
    2020       return,{ID:event.handler, TOP:event.top, HANDLER:0L} 
    2121; si on ne change pas le nombre de lignes, on sort 
    2222      if uval.name EQ 'row' then $ 
    23        if event.index+1 EQ petitin[1] THEN $ 
     23       if event.index+1 EQ smallin[1] THEN $ 
    2424       return,{ID:event.handler, TOP:event.top, HANDLER:0L} 
    2525; 
     
    3333         'clear': 
    3434         'column':BEGIN  
    35             petitin = [event.index+1, petitin[1], 1] 
    36             petitout = [event.index+1, petitout[1], 1] 
     35            smallin = [event.index+1, smallin[1], 1] 
     36            smallout = [event.index+1, smallout[1], 1] 
    3737         END 
    3838         'row':BEGIN 
    39             petitin = [petitin[0], event.index+1, 1] 
    40             petitout = [petitout[0], event.index+1, 1] 
     39            smallin = [smallin[0], event.index+1, 1] 
     40            smallout = [smallout[0], event.index+1, 1] 
    4141         END 
    4242      endcase 
    43       nbredessin = petitin[0]*petitin[1] 
     43      nbredessin = smallin[0]*smallin[1] 
    4444;          
    4545; on remet tout a 0 en ce qui concerne les postscripts 
    46       createhistory, event.top, petitin 
     46      createhistory, event.top, smallin 
    4747;          
    4848         options = extractatt(top_uvalue, 'options')    
     
    5959; actualisation de la top_uvalue... 
    6060; 
    61       *top_uvalue[1, findline(top_uvalue, 'petitin')] = petitin 
    62       *top_uvalue[1, findline(top_uvalue, 'petitout')] = petitout 
     61      *top_uvalue[1, findline(top_uvalue, 'smallin')] = smallin 
     62      *top_uvalue[1, findline(top_uvalue, 'smallout')] = smallout 
    6363; 
    6464      *top_uvalue[1, findline(top_uvalue, 'penvs')] = replicate(!p, nbredessin) 
     
    108108end 
    109109;********************************************************************* 
    110 FUNCTION cw_miseenpage, parent, petit, UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, UNZOOM = unzoom, _extra = ex 
     110FUNCTION cw_miseenpage, parent, small, UVALUE = uvalue, UNAME = uname, ROW = row, COLUMN = column, UNZOOM = unzoom, _extra = ex 
    111111; cheking exclusive keywords 
    112112   column = keyword_set(column)*(1-keyword_set(row)) 
     
    121121                      , UVALUE = uvalue, UNAME = uname, _extra = ex)    
    122122;------------------------------------------------ 
    123    IF n_elements(petit) eq 0 then petit = [1, 1, 1] 
     123   IF n_elements(small) eq 0 then small = [1, 1, 1] 
    124124   basedroplist = widget_base(base, /column, /align_center) 
    125125   id=widget_droplist(basedroplist, value=strtrim(indgen(10)+1, 1), title ='column' $ 
    126126                        , uvalue ={name:'column'}, uname='column') 
    127    widget_control, id, set_droplist_select = petit[0]-1 
     127   widget_control, id, set_droplist_select = small[0]-1 
    128128   id=widget_droplist(basedroplist, value=strtrim(indgen(10)+1, 1), title =' row ' $ 
    129129                        , uvalue ={name:'row'}, uname='row') 
    130    widget_control, id, set_droplist_select = petit[1]-1 
     130   widget_control, id, set_droplist_select = small[1]-1 
    131131   basebutton = widget_base(base, /column, /align_center) 
    132132   rien = widget_button(basebutton, value = 'Clear', uvalue ={name:'clear'}, uname='clear') 
Note: See TracChangeset for help on using the changeset viewer.