File: res.h

package info (click to toggle)
qtads 2.1.6-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,156 kB
  • ctags: 18,767
  • sloc: cpp: 133,078; ansic: 26,048; xml: 18; makefile: 11
file content (66 lines) | stat: -rw-r--r-- 2,164 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* $Header: d:/cvsroot/tads/TADS2/RES.H,v 1.1 1999/07/11 00:46:30 MJRoberts Exp $ */

/* 
 *   Copyright (c) 1999, 2002 Michael J. Roberts.  All Rights Reserved.
 *   
 *   Please see the accompanying license file, LICENSE.TXT, for information
 *   on using and copying this software.  
 */
/*
Name
  res.h - string resource definitions for TADS
Function
  Defines the ID's for string resources.  These strings must be loaded
  when needed with os_get_str_rsc(), since the specific mechanism by which
  these strings are loaded varies by operating system.

  We assign the resources sequential numbers starting at 1, to make it
  easier to map the resource loader to an operating system mechanism
  where such a mechanism exists.
Notes
  
Modified
  06/25/99 MJRoberts  - Creation
*/

#ifndef _RES_H_
#define _RES_H_

/*
 *   Dialog buttons.  These provide the text for standard buttons in
 *   dialogs created with os_input_dialog().
 *   
 *   These labels can use "&" to indicate a shortcut letter, per the
 *   normal os_input_dialog() interface; for example, if the Yes button
 *   label is "&Yes", the button has the shortcut letter "Y".
 *   
 *   The text of these buttons may vary by system, since these should
 *   conform to local conventions where there are local conventions.  In
 *   addition, of course, these strings will vary by language.  
 */

/* OK and Cancel buttons */
#define RESID_BTN_OK       1
#define RESID_BTN_CANCEL   2

/* "Yes" and "No" buttons */
#define RESID_BTN_YES      3
#define RESID_BTN_NO       4

/*
 *   Reply strings for the yorn() built-in function.  These strings are
 *   regular expressions as matched by the regex.h functions.  For
 *   English, for example, the "yes" string would be "[Yy].*" and the "no"
 *   string would be "[Nn].*".  For German, it might be desirable to
 *   accept both "Ja" and "Yes", so the "Yes" string might be "[JjYy].*".
 *   
 *   It's not necessary in these patterns to consider leading spaces,
 *   since the yorn() function will skip any leading spaces before
 *   performing the pattern match.  
 */
#define RESID_YORN_YES     5
#define RESID_YORN_NO      6


#endif /* _RES_H_ */