blob: 4a69d5d9e0e5dab29598d051cca386fb5bd570e6 [file] [log] [blame]
Jack Jansenc2e6dd81995-08-14 12:34:42 +00001/*
2** Resource-IDs in use by Python.
3**
4** All resources used by the python interpreter itself fall
5** in the range 128-256.
6**
7** Standard python modules use resources in the range
8** 256-512.
9**
10** Python programs that use their own resources are advised to
11** choose resource numbers higher than 512.
12*/
13
14/*
15** Resources that reside in the python executable (or, for
16** shared ppc python, in the core dynamic library)
17*/
18
Jack Jansen41fa7ea1995-08-31 13:59:36 +000019/* The alert for "No Python directory, where is it?" (OBSOLETE) */
20#define NOPYTHON_ALERT 128
21#define YES_ITEM 1
22#define NO_ITEM 2
23#define CURWD_ITEM 3
Jack Jansenc2e6dd81995-08-14 12:34:42 +000024
25/* The alert for "this is an applet template" */
Jack Jansen41fa7ea1995-08-31 13:59:36 +000026#define NOPYC_ALERT 129
Jack Jansenc2e6dd81995-08-14 12:34:42 +000027
28/* The dialog for our GetDirectory and PromptGetFile call */
Jack Jansen41fa7ea1995-08-31 13:59:36 +000029#define GETDIR_ID 130 /* Resource ID for our "get directory" */
Jack Jansenc2e6dd81995-08-14 12:34:42 +000030#define GETFILEPROMPT_ID 132 /* Resource id for prompted get file */
Jack Jansen41fa7ea1995-08-31 13:59:36 +000031#define PROMPT_ITEM 10 /* The prompt, at the top */
32#define SELECTCUR_ITEM 11 /* "Select current directory" button */
Jack Jansenc2e6dd81995-08-14 12:34:42 +000033
34
35/* The dialog for interactive options */
36#define OPT_DIALOG 131 /* Resource ID for dialog */
37#define OPT_OK 1
38#define OPT_CANCEL 2
39#define OPT_INSPECT 3
40#define OPT_VERBOSE 4
41#define OPT_SUPPRESS 5
42#define OPT_UNBUFFERED 6
43#define OPT_DEBUGGING 7
Jack Jansen0168f271995-10-27 13:32:30 +000044#define OPT_KEEPNORMAL 8
45#define OPT_KEEPERROR 9
Jack Jansene355c451996-03-12 13:29:04 +000046#define OPT_CMDLINE 10
Jack Jansenc2e6dd81995-08-14 12:34:42 +000047
Jack Jansen41fa7ea1995-08-31 13:59:36 +000048/* Dialog for 'No preferences directory' */
49#define NOPREFDIR_ID 133
50
51/* Dialog for 'Create preferences file?' */
52#define NOPREFFILE_ID 134
53#define NOPREFFILE_YES 1
54#define NOPREFFILE_NO 2
55
56/* Dialog for 'Bad preference file' */
57#define BADPREFFILE_ID 135
58
Jack Jansenc2e6dd81995-08-14 12:34:42 +000059/*
60** The following are valid both in the binary (or shared library)
61** and in the Preferences file
62*/
63
64/* The STR# resource for sys.path initialization */
65#define PYTHONPATH_ID 128
66
67/* The alis resource for locating the python home directory */
68#define PYTHONHOME_ID 128
Jack Jansena4b7e141996-02-21 16:46:57 +000069
70/* The Python options resource and offset of its members */
71#define PYTHONOPTIONS_ID 128
72#define POPT_INSPECT 0
73#define POPT_VERBOSE 1
74#define POPT_SUPPRESS 2
75#define POPT_UNBUFFERED 3
76#define POPT_DEBUGGING 4
77#define POPT_KEEPNORM 5
78#define POPT_KEEPERR 6
Jack Jansen01fbc681996-02-28 15:42:47 +000079
80/* From macgetpath.c: */
81void PyMac_PreferenceOptions Py_PROTO((int *inspect, int *verbose, int *suppress_print,
82 int *unbuffered, int *debugging, int *keep_normal,
83 int *keep_error));
84
Jack Jansena4b7e141996-02-21 16:46:57 +000085