Initial revision
[ssr] / StraySrc / Libraries / Sapphire / sh / warning
1 ;
2 ; warning.sh
3 ;
4 ; Displays warning boxes
5 ;
6 ; © 1994-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's Sapphire library.
12 ;
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ; warning
32 ; warn_init
33
34 [ :LNOT::DEF:warning__dfn
35 GBLL warning__dfn
36
37 ; --- warning ---
38 ;
39 ; On entry: R0 == pointer to warning text to display
40 ; R1 == pointer to buttons block
41 ;
42 ; On exit: R0 == button that was clicked
43 ; CS if this was default, CC otherwise
44 ;
45 ; Use: Displays a warning to the user. The warning box can have up
46 ; to five buttons (because it's too small for any more than
47 ; that). These are placed in a column on the right hand side
48 ; of the dialogue. The buttons are numbered from 0 up to 4
49 ; from the bottom upwards, 0 being the default. You can
50 ; choose one button to be `Cancel', in which case pressing
51 ; escape will activate it.
52
53 IMPORT warning
54
55 ; --- warn_init ---
56 ;
57 ; On entry: R0 == program name
58 ;
59 ; On exit: --
60 ;
61 ; Use: Sets up the Warning dialogue box for use.
62
63 IMPORT warn_init
64
65 ]
66
67 ;----- That's all, folks ----------------------------------------------------
68
69 END