# ============================================================================
# Non standard screen capture shell
#
#	These shells allow to create a new screen capture utility.
#
#	They have to be referenced into SnapList.sh shell in front of
#	corresponding workstation type.
#
#	They must answer to 3 requests identified by first parameter ($1):
#		-property, -dump and -load.
#	Answer are done echoing strings on standard output.
#
#	Syntax of request and corresponding answer:
#
#	Request -property :
#		Specify identification, capacities and needs of capture.
#	Answer to -property request :
#		-name string : string will be the label of Dump Type menu.
#		-info string : string will be reported under Dump Type menu.
#		-mask capacity or needs : specify one capacity ore one needs
#			per echoing line. Echo another -mask line if needed.
#			Capacity or needs are as following :
#			-bell : doesn't allow Cameleo to manage bell (in case
#				of specific capture allow use of bell)
#			-wait : doesn't allow Cameleo to manage a wait time
#			-screen : doesn't allow user to select entire screen
#				capture. Button will be crossed.
#			-frame : doesn't allow user to select window with
#				frame capture. Button will be crossed.
#			-window : doesn't allow user to select window without
#				frame capture. Button will be crossed.
#			-region : doesn't allow user to select region capture.
#				Button will be crossed.
#			-zone : doesn't allow Cameleo to request for area
#				capture. Case where specific capture will do
#				it systematically.
#			-display : doesn't allow user to change display.
#				Display will return to it's default value
#				(local display).
#			+screen : select screen capture by default 
#				if current selection not allowed.
#			+frame : select window with frame capture by default
#				if current selection not allowed.
#			+window : select window without frame capture by default
#				if current selection not allowed.
#			+region : select region capture by default
#				if current selection not allowed.
#			+bell : doesn't allow user to unselect bell (in case
#				of specific capture do bell systematically)
#			+wait : doesn't allow user to specify a wait time
#				(this time is automatically set to 0).
#
#	Request -dump TmpFile AreaType Bell WaitTime Window 
#			Width Height Left Top SWidth SHeight Display :
#		Realize dump process with current specified area. 
#		If shell answered "-mask -zone" at -property request, ignore 
#		Window, Width, Height, Left and Top parameters. Just select 
#		area following AreaType parameter. In this case, load the
#		collecting captured area with batch_load.
#		TmpFile is a name of temporary file to be used for collecting 
#		the captured area. This name is given also on -load request.
#		AreaType is -screen, -frame, -window or -region for 
#		respectively the entire screen, window with frame, window
#		without frame or region. 
#		Bell is alarm flag and must managed if "-mask -bell" was 
#		answered at -property request without "-mask +bell".
#		WaitTime is waiting time and must be managed if "-mask -wait" 
#		was answered at -property request without "-mask +wait".
#		Window is the identifier of requesting window,if AreaType 
#		set to -screen (Root), -frame or -window. If AreaType set to 
#		-region use Width, Height, Left, Top values.
#		SWidth and SHeight are respectively the width and the height
#		of current screen (useful if Y dimension reversed).
#		Display is the string of desired display (other than local 
#		only if "-mask -display" not answered in -property request).
#	Answer to -dump request :
#		In case of "-mask -zone" answered at -property request, echo
#		the name of the file batch_load answered while loading captured
#		area. Use the following command :
#		 name=`$__CAS_EXE/batch_load -i $__CAS_TMP/$TmpFile 2>/dev/null`
#		 echo $name
#		In other case answer the depth (8 or 24) of captured area.
#		Clients message can be then echoed. These message will be sent 
#		to -load request after -client string. Each of echoed client 
#		message will generate one -client message string in -load.
#
#	Request -load TmpFile ImageFile
#			-client message -client message...
#		Load captured area into ImageFile specified in parameters.
#		TmpFile is a name of temporary file used for
#		collecting the captured area. Use following command :
#		 $__CAS_EXE/batch_load -private_dir $ImageFile -i $TmpFile
#	Answer to -load request :
#		Echo 0 if correct loading.
#		Echo non 0 value in other case.
# ============================================================================

