Ignore:
Timestamp:
07/07/06 11:57:27 (18 years ago)
Author:
navarro
Message:

english and nicer header (1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/UTILITAIRE/oups.pro

    r11 r133  
    1 ;------------------------------------------------------------ 
    2 ;------------------------------------------------------------ 
    3 ;------------------------------------------------------------ 
    41;+ 
    5 ; NAME:oups 
    62; 
    7 ; PURPOSE: Sorte de UNDO: 
    8 ; permet de refaire toute la serie de dessin depuis 
    9 ; l''ouverture de la derniere fenetre sans reexecuter la derniere 
    10 ; commande. cf. je fais un dessin avec 10 plt dessus au 10 eme je me 
    11 ; plante, un coup de @oups et je peux refaire mon plt rate! 
     3; @file_comments  
     4;       Kind of UNDO: 
     5;         Allows to redo all the chain of drawing since the opening of the last window without  
     6;         reexecute the last order Example: I do a drawing with 10 plot over it, if I make a  
     7;         mistake, I execute this program and i can redo the only plot missed. 
    128; 
    13 ; CATEGORY: pour faciliter les dessins 
     9; @categories utilities 
    1410; 
    15 ; CALLING SEQUENCE: @oups 
     11; @restrictions compatible with @ps @vzoom text_box... 
    1612; 
    17 ; SIDE EFFECTS: compatible avec @ps @vzoom text_box... 
     13; @history Sebastien Masson (smasson@lodyc.jussieu.fr) 
    1814; 
    19 ; RESTRICTIONS: 
    2015; 
    21 ; EXAMPLE: 
     16; @version $Id$ 
    2217; 
    23 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
     18; @todo seb 
    2419; 
    2520;- 
    2621;------------------------------------------------------------ 
    27 ;------------------------------------------------------------ 
    28 ;------------------------------------------------------------ 
    29 ;------------------------------------------------------------ 
    30 ; il faut fermer le journal! 
     22; Close the journal! 
    3123;------------------------------------------------------------ 
    3224 journal 
    33 ; on recupere le journal sous la forme d''un vecteur de string: 
     25; we recuperate the journal as a vector of string: 
    3426   vectjournal = getfile(myuniquetmpdir+'idlsave.pro') 
    35 ; on coupe la derniere ligne qui est oups 
     27; we cut the last line which is oups 
    3628   vectjournal = vectjournal[0:n_elements(vectjournal)-2 ] 
    3729;------------------------------------------------------------ 
    38 ; on le corrige si besoin est... 
     30; we correct it if there is the need... 
    3931;------------------------------------------------------------ 
    4032for i = 0, n_elements(vectjournal)-1 do $ 
    4133 if strpos(vectjournal[i],'text_box' ) EQ -1 then $ 
    4234 vectjournal[i] = strtrim(strcompress(vectjournal[i]), 2) 
    43 ;2 lignes sont identiques ?? 
     35;2 line are identical ?? 
    4436for i = 0, n_elements(vectjournal)-2 do $ 
    4537 if vectjournal[i] EQ vectjournal[i+1] then vectjournal[i] = ' ' 
     
    6254 
    6355; 
    64 ; on vire la derniere ligne pour tout reexecuter sauf la derniere commande 
     56; we erase the last line to reexecute all the programm but the last order. 
    6557; 
    6658 IF strpos(vectjournal[n_elements(vectjournal)-1],';,pos=[' ) NE -1 then $ 
    6759 vectjournal[n_elements(vectjournal)-2] = '' $ 
    6860 ELSE vectjournal[n_elements(vectjournal)-1] = ''  
    69 ; on reecrit idlsave.pro 
     61; we rewrite idlsave.pro 
    7062putfile, myuniquetmpdir+'idlsave.pro', vectjournal 
    71 ; on compile puis applique idlsave 
     63; we compile, then we apply idlsave 
    7264cd,  current = curdir 
    7365cd, myuniquetmpdir 
    7466@idlsave    
    7567cd, curdir 
    76 ; le journal vient d'etre reouvert, et on y met les elements de 
    77 ; vectjournal  
     68; the journal has just been reopened, and we put elements of vectjournal in it.  
    7869for i = 0, n_elements(vectjournal)-1 DO $ 
    7970journal, vectjournal[i] 
Note: See TracChangeset for help on using the changeset viewer.