Ignore:
Timestamp:
06/19/06 16:14:56 (18 years ago)
Author:
smasson
Message:

new compilation options (compile_opt idl2, strictarrsubs) in each routine

Location:
trunk/SRC/ToBeReviewed/IMAGE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/IMAGE/animgif.pro

    r74 r114  
    4242;------------------------------------------------------------ 
    4343PRO animgif, nomfic 
     44; 
     45  compile_opt idl2, strictarrsubs 
     46; 
    4447@common 
    4548; 
  • trunk/SRC/ToBeReviewed/IMAGE/image_viewer.pro

    r23 r114  
    4848;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open Picture Files" FROM THE MAIN MENU 
    4949;error handling: 
     50; 
     51  compile_opt idl2, strictarrsubs 
     52; 
    5053!ERROR_STATE.CODE=0 
    5154CATCH,error 
     
    126129;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Open All In Folder" FROM THE MAIN MENU 
    127130;error handling: 
     131; 
     132  compile_opt idl2, strictarrsubs 
     133; 
    128134!ERROR_STATE.CODE=0 
    129135CATCH,error 
     
    204210PRO IMAGE_VIEWER_CANCEL,event 
    205211;obtain state structure for top-level-base from its UVALUE: 
     212; 
     213  compile_opt idl2, strictarrsubs 
     214; 
    206215WIDGET_CONTROL,event.top,GET_UVALUE=pState 
    207216;shut-off timer: 
     
    214223PRO IMAGE_VIEWER_TIMER,event 
    215224;obtain state structure for top-level-base from its UVALUE: 
     225; 
     226  compile_opt idl2, strictarrsubs 
     227; 
    216228WIDGET_CONTROL,event.top,GET_UVALUE=pState 
    217229if (*pState).timer EQ 1 then begin ;continue processing files: 
     
    884896;THIS PROCEDURE IS CALLED WHEN A USER SELECTS "File > Exit" FROM THE MAIN MENU 
    885897;terminate the program by destroying the top-level-base (widgetID always stored in event.top): 
     898; 
     899  compile_opt idl2, strictarrsubs 
     900; 
    886901WIDGET_CONTROL,event.top,/DESTROY 
    887902END 
     
    894909;FROM THE MAIN MENU 
    895910;display a simple message: 
     911; 
     912  compile_opt idl2, strictarrsubs 
     913; 
    896914messageStr=['IMAGE_VIEWER written by AEB, 2002.','',$ 
    897915            'The purpose of this program is to provide an interactive tool that can be used',$ 
     
    909927;THIS PROCEDURE IS CALLED WHEN A USER CLICKS ON ONE OF THE THUMBNAIL PICTURES 
    910928;error handling: 
     929; 
     930  compile_opt idl2, strictarrsubs 
     931; 
    911932!ERROR_STATE.CODE=0 
    912933CATCH,error 
     
    953974;THIS PROCEDURE IS CALLED WHEN THE PROGRAM IS TERMINATED AND XMANAGER REGISTERS A CLEANUP: 
    954975;obtain state structure for top-level-base from its uvalue: 
     976; 
     977  compile_opt idl2, strictarrsubs 
     978; 
    955979WIDGET_CONTROL,widgetID,GET_UVALUE=pState 
    956980;test for validity of state structure pointer: 
     
    9781002;THIS PROCEDURE IS CALLED WHEN A USER RESIZES THE TOP-LEVEL BASE 
    9791003;error handling: 
     1004; 
     1005  compile_opt idl2, strictarrsubs 
     1006; 
    9801007!ERROR_STATE.CODE=0 
    9811008CATCH,error 
     
    9971024PRO IMAGE_VIEWER 
    9981025;error handling: 
     1026; 
     1027  compile_opt idl2, strictarrsubs 
     1028; 
    9991029!ERROR_STATE.CODE=0 
    10001030CATCH,error 
  • trunk/SRC/ToBeReviewed/IMAGE/imdisp.pro

    r23 r114  
    11;------------------------------------------------------------------------------- 
    22FUNCTION IMDISP_GETPOS, ASPECT, POSITION=POSITION, MARGIN=MARGIN 
     3; 
     4  compile_opt idl2, strictarrsubs 
     5; 
    36 
    47;- Compute a position vector given an aspect ratio (called by IMDISP_IMSIZE) 
     
    4649FUNCTION IMDISP_IMSCALE, IMAGE, RANGE=RANGE, BOTTOM=BOTTOM, NCOLORS=NCOLORS, $ 
    4750  NEGATIVE=NEGATIVE 
     51; 
     52  compile_opt idl2, strictarrsubs 
     53; 
    4854 
    4955;- Byte-scale an image (called by IMDISP) 
     
    7379;------------------------------------------------------------------------------- 
    7480FUNCTION IMDISP_IMREGRID, DATA, NX, NY, INTERP=INTERP 
     81; 
     82  compile_opt idl2, strictarrsubs 
     83; 
    7584 
    7685;- Regrid a 2D array (called by IMDISP) 
     
    112121PRO IMDISP_IMSIZE, IMAGE, X0, Y0, XSIZE, YSIZE, ASPECT=ASPECT, $ 
    113122  POSITION=POSITION, MARGIN=MARGIN 
     123; 
     124  compile_opt idl2, strictarrsubs 
     125; 
    114126 
    115127;- Compute the size and offset for an image (called by IMDISP) 
     
    171183  BACKGROUND=BACKGROUND, ERASE=ERASE, $ 
    172184  AXIS=AXIS, NEGATIVE=NEGATIVE, _EXTRA=EXTRA_KEYWORDS 
     185; 
     186  compile_opt idl2, strictarrsubs 
     187; 
    173188 
    174189;+ 
  • trunk/SRC/ToBeReviewed/IMAGE/saveimage.pro

    r69 r114  
    11PRO SAVEIMAGE, FILE, BMP=BMP, PNG=PNG, PICT=PICT, JPEG=JPEG, TIFF=TIFF, $ 
    22  QUALITY=QUALITY, DITHER=DITHER, CUBE=CUBE, QUIET=QUIET, MULTIPLE = multiple 
     3; 
     4  compile_opt idl2, strictarrsubs 
     5; 
    36 
    47;+ 
  • trunk/SRC/ToBeReviewed/IMAGE/showimage.pro

    r69 r114  
    11PRO SHOWIMAGE, FILE, DITHER=DITHER, CURRENT=CURRENT 
     2; 
     3  compile_opt idl2, strictarrsubs 
     4; 
    25 
    36;+ 
Note: See TracChangeset for help on using the changeset viewer.