blob: dd847ff70ee5e66ee29cd15176911786b2c061a1 [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 Jansen3469e991996-09-06 00:30:45 +000059/* About box */
60#define ABOUT_ID 136
61
Jack Jansenc2e6dd81995-08-14 12:34:42 +000062/*
63** The following are valid both in the binary (or shared library)
Jack Jansenab69eb91996-04-04 15:39:42 +000064** and in the Preferences file.
65** For all three the override is tried first, through all current
66** resource files. This allows an applet to override standard settings
67** by providing a resource of the correct type.
Jack Jansenc2e6dd81995-08-14 12:34:42 +000068*/
69
70/* The STR# resource for sys.path initialization */
71#define PYTHONPATH_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000072#define PYTHONPATHOVERRIDE_ID 129
Jack Jansenc2e6dd81995-08-14 12:34:42 +000073
74/* The alis resource for locating the python home directory */
75#define PYTHONHOME_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000076#define PYTHONHOMEOVERRIDE_ID 129
Jack Jansena4b7e141996-02-21 16:46:57 +000077
78/* The Python options resource and offset of its members */
79#define PYTHONOPTIONS_ID 128
Jack Jansenab69eb91996-04-04 15:39:42 +000080#define PYTHONOPTIONSOVERRIDE_ID 129
Jack Jansena4b7e141996-02-21 16:46:57 +000081#define POPT_INSPECT 0
82#define POPT_VERBOSE 1
83#define POPT_SUPPRESS 2
84#define POPT_UNBUFFERED 3
85#define POPT_DEBUGGING 4
86#define POPT_KEEPNORM 5
87#define POPT_KEEPERR 6
Jack Jansen01fbc681996-02-28 15:42:47 +000088
Jack Jansen3469e991996-09-06 00:30:45 +000089/* Our menu bar */
90#define MENUBAR_ID 128
91
Jack Jansen01fbc681996-02-28 15:42:47 +000092/* From macgetpath.c: */
93void PyMac_PreferenceOptions Py_PROTO((int *inspect, int *verbose, int *suppress_print,
94 int *unbuffered, int *debugging, int *keep_normal,
95 int *keep_error));
96
Jack Jansena4b7e141996-02-21 16:46:57 +000097