;
; warning.sh
;
; Displays warning boxes
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sapphire library.
;
; Sapphire is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; Sapphire is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Sapphire.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Overview -------------------------------------------------------------
;
; Functions provided:
;
;  warning
;  warn_init

		[	:LNOT::DEF:warning__dfn
		GBLL	warning__dfn

; --- warning ---
;
; On entry:	R0 == pointer to warning text to display
;		R1 == pointer to buttons block
;
; On exit:	R0 == button that was clicked
;		CS if this was default, CC otherwise
;
; Use:		Displays a warning to the user.  The warning box can have up
;		to five buttons (because it's too small for any more than
;		that).  These are placed in a column on the right hand side
;		of the dialogue.  The buttons are numbered from 0 up to 4
;		from the bottom upwards, 0 being the default.  You can
;		choose one button to be `Cancel', in which case pressing
;		escape will activate it.

		IMPORT	warning

; --- warn_init ---
;
; On entry:	R0 == program name
;
; On exit:	--
;
; Use:		Sets up the Warning dialogue box for use.

		IMPORT	warn_init

		]

;----- That's all, folks ----------------------------------------------------

		END
