;
; tms.sh
;
; The Straylight Tearoff Menu Segment
;
;  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:
;
;   tms_create
;   tms_recreate
;   tms_help
;   tms_init

;---- Functions provided ----------------------------------------------------

; --- tms_create ---
;
; On entry:	R0 == pointer to a menu block
;		R1 == pointer to event handler for the menu section
;		R2 == R10 value to pass to the event handler
;		R3 == R12 value to pass to the event handler
;
; On exit:	R0 == tearoff handle for this menu
;		VS and R0 == pointer to error block if it failed, as normal
;
; Use:		Creates a new menu, or adds sections to an existing one.

		IMPORT	tms_create

; --- tms_recreate ---
;
; On entry:	--
;
; On exit:	--
;
; Use:		Recreates the existing menu structure, making changes where
;		appropriate.

		IMPORT	tms_recreate

; --- tms_help ---
;
; On entry:	R0 == pointer to base message tag
;		R1 == index of menu item
;
; On exit:	--
;
; Use:		Adds a string to the help message found by adding the menu
;		item number to the base message tag.

		IMPORT	tms_help

; --- tms_init ---
;
; On entry:	--
;
; On exit:	--
;
; Use:		Initialises the tearoff menu segment

		IMPORT	tms_init

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

	END
