blob: 93e046be6d5bf3731c0ab97d2570a5801aba64df [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)
Jack Jansenab69eb91996-04-04 15:39:42 +000061** and in the Preferences file.
62** For all three the override is tried first, through all current
63** resource files. This allows an applet to override standard settings
64** by providing a resource of the correct type.
Jack Jansenc2e6dd81995-08-14 12:34:42 +000065*/
66
67/* The STR# resource for sys.path initialization */
68#define PYTHONPATH_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000069#define PYTHONPATHOVERRIDE_ID 129
Jack Jansenc2e6dd81995-08-14 12:34:42 +000070
71/* The alis resource for locating the python home directory */
72#define PYTHONHOME_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000073#define PYTHONHOMEOVERRIDE_ID 129
Jack Jansena4b7e141996-02-21 16:46:57 +000074
75/* The Python options resource and offset of its members */
76#define PYTHONOPTIONS_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000077#define PYTHONOPTIONSOVERRIDE_ID 129
Jack Jansena4b7e141996-02-21 16:46:57 +000078#define POPT_INSPECT 0
79#define POPT_VERBOSE 1
80#define POPT_SUPPRESS 2
81#define POPT_UNBUFFERED 3
82#define POPT_DEBUGGING 4
83#define POPT_KEEPNORM 5
84#define POPT_KEEPERR 6
Jack Jansen01fbc681996-02-28 15:42:47 +000085
86/* From macgetpath.c: */
87void PyMac_PreferenceOptions Py_PROTO((int *inspect, int *verbose, int *suppress_print,
88 int *unbuffered, int *debugging, int *keep_normal,
89 int *keep_error));
90
Jack Jansena4b7e141996-02-21 16:46:57 +000091