----- file created by makedoc on: Thu Sep 11 15:03:15 2014
----- Documentation for /scisoft/xop2.4/extensions/shadowvui/src/vui/xsh_source.pro -----


   ===========================  Xsh_Source   =========================

   Xsh_Source is an widget based graphical interface to generate
   the SHADOW geometrical and bending magnet sources.

 ------------- Non-interactive use of XSH_Source ----------------------

 NAME:        
       XSH_SOURCE
 PURPOSE:              
       To generate SHADOW bending magnet and geometrical sources
               
 CALLING SEQUENCE: 
       XSH_SOURCE [, input] 
    
 OPTIONAL INPUT PARAMETERS:     
	input: A structure or a pointer to a structure containing 
		a g-structure (i.e., am IDL structure containing the 
		information set in a g-file, like start.00)
		If this input is not set, the g-structure is 
		obtained from XSH_Defaults('XSH_SOURCE_G') or 
		XSH_Defaults('XSH_SOURCE_BM') depending if the 
		BM keyword is not or yes, respectively. 

 OUTPUTS:
       Calls SHADOW gen_source when running. In input is a structure, 
	this structure is modified.
                              
 KEYWORDS:
       BM = If set, starts the Bending magnet parameter window, 
		otherwise, it starts the geometrical source.
       ONLY_RUN = run SHADOW/Source for the given input without starting 
		any window.
       NO_BLOCK = IF set, this keyword is passed to XManager.
       MODAL = Start the application in modal mode, the modifications are 
		returned in the input structure.
		
 MODIFICATION HISTORY:
       Author: M. Sanchez del Rio (srio@esrf.fr), ESRF, Jun 2000
       Modification history:
	00/06/30 srio@esrf.fr first version. This applications
		makes XSHGEOM and XSHBM obsolete.
	01/06/12 srio@esrf.fr bug fixed when passing hor div to srcomp
	2012/05/29 srio@esrf.eu added "reject rays" button.


