Changeset 133 for trunk/SRC/Utilities/xfile.pro
- Timestamp:
- 07/07/06 11:57:27 (18 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Utilities/xfile.pro
r132 r133 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME: xfile6 5 ; 7 ; PURPOSE: affiche ds un widget un fichier ASCII. 8 ; c''est la meme chose que xdisplaydife mais ici on l''utilise pour 9 ; visualiser le contenu d''une procedure ou d''une fonction 10 ; meme si elle n''est pas ds le repertoire courant (grace a !path) 6 ; @file_comments 7 ; display in a widget an ASCII file. 8 ; It is the same thing that xdisplaydife but here, we use it 9 ; to display the content of a procedure or of a function, 10 ; even if it is not in the current directory (thanks to the path). 11 11 ; 12 ; CATEGORY: help12 ; @categories utilities 13 13 ; 14 ; CALLING SEQUENCE: xfile,'nom_fichier' 14 ; @param filename {in}{required} It is the name of the procedure or of the function 15 ; we want to display (with or without .pro at the end). 15 16 ; 16 ; INPUTS: 17 ; nom_fichier:le nom d''une procedure ou d''une fonction a 18 ; visualiser avec ou sans le .pro a la fin 17 ; @keyword _extra used to pass your keywords 19 18 ; 20 ; KEYWORD PARAMETERS:ceux de xdisplayfile19 ; @examples xfile,'plt' 21 20 ; 22 ; EXAMPLE:xfile,'plt' 23 ; 24 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 21 ; @history Sebastien Masson (smasson@lodyc.jussieu.fr) 25 22 ; 7/1/99 26 23 ; 6/7/1999: compatibilite mac et windows 24 ; 25 ; @version $Id$ 26 ; 27 27 ;- 28 28 ;------------------------------------------------------------ … … 35 35 pfile = strlowcase(filename) 36 36 ; 37 ; il faut trouver le nom complet37 ; we have to find the full name. 38 38 ; 39 39 if strpos(pfile,".pro") lt 0 then pfile=pfile+".pro" … … 57 57 endrep until res[0] NE '' OR i EQ n_elements(pfile) 58 58 if res[0] NE '' then BEGIN 59 ; on ouvre le fichier ds unwidget59 ; we open the file in a widget 60 60 xdisplayfile, pfile[i-1], _extra = ex 61 61 ENDIF ELSE ras = report('le fichier demande n''existe pas...')
Note: See TracChangeset
for help on using the changeset viewer.