| 1 | /* $Header: d:/cvsroot/tads/TADS2/RES.H,v 1.1 1999/07/11 00:46:30 MJRoberts Exp $ */ |
| 2 | |
| 3 | /* |
| 4 | * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved. |
| 5 | * |
| 6 | * Please see the accompanying license file, LICENSE.TXT, for information |
| 7 | * on using and copying this software. |
| 8 | */ |
| 9 | /* |
| 10 | Name |
| 11 | res.h - string resource definitions for TADS |
| 12 | Function |
| 13 | Defines the ID's for string resources. These strings must be loaded |
| 14 | when needed with os_get_str_rsc(), since the specific mechanism by which |
| 15 | these strings are loaded varies by operating system. |
| 16 | |
| 17 | We assign the resources sequential numbers starting at 1, to make it |
| 18 | easier to map the resource loader to an operating system mechanism |
| 19 | where such a mechanism exists. |
| 20 | Notes |
| 21 | |
| 22 | Modified |
| 23 | 06/25/99 MJRoberts - Creation |
| 24 | */ |
| 25 | |
| 26 | #ifndef _RES_H_ |
| 27 | #define _RES_H_ |
| 28 | |
| 29 | /* |
| 30 | * Dialog buttons. These provide the text for standard buttons in |
| 31 | * dialogs created with os_input_dialog(). |
| 32 | * |
| 33 | * These labels can use "&" to indicate a shortcut letter, per the |
| 34 | * normal os_input_dialog() interface; for example, if the Yes button |
| 35 | * label is "&Yes", the button has the shortcut letter "Y". |
| 36 | * |
| 37 | * The text of these buttons may vary by system, since these should |
| 38 | * conform to local conventions where there are local conventions. In |
| 39 | * addition, of course, these strings will vary by language. |
| 40 | */ |
| 41 | |
| 42 | /* OK and Cancel buttons */ |
| 43 | #define RESID_BTN_OK 1 |
| 44 | #define RESID_BTN_CANCEL 2 |
| 45 | |
| 46 | /* "Yes" and "No" buttons */ |
| 47 | #define RESID_BTN_YES 3 |
| 48 | #define RESID_BTN_NO 4 |
| 49 | |
| 50 | /* |
| 51 | * Reply strings for the yorn() built-in function. These strings are |
| 52 | * regular expressions as matched by the regex.h functions. For |
| 53 | * English, for example, the "yes" string would be "[Yy].*" and the "no" |
| 54 | * string would be "[Nn].*". For German, it might be desirable to |
| 55 | * accept both "Ja" and "Yes", so the "Yes" string might be "[JjYy].*". |
| 56 | * |
| 57 | * It's not necessary in these patterns to consider leading spaces, |
| 58 | * since the yorn() function will skip any leading spaces before |
| 59 | * performing the pattern match. |
| 60 | */ |
| 61 | #define RESID_YORN_YES 5 |
| 62 | #define RESID_YORN_NO 6 |
| 63 | |
| 64 | |
| 65 | #endif /* _RES_H_ */ |
| 66 |