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

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

File:
1 edited

Legend:

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