Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 1 | /* |
| 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 Jansen | 41fa7ea | 1995-08-31 13:59:36 +0000 | [diff] [blame] | 19 | /* 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 Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 24 | |
| 25 | /* The alert for "this is an applet template" */ |
Jack Jansen | 41fa7ea | 1995-08-31 13:59:36 +0000 | [diff] [blame] | 26 | #define NOPYC_ALERT 129 |
Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 27 | |
| 28 | /* The dialog for our GetDirectory and PromptGetFile call */ |
Jack Jansen | 41fa7ea | 1995-08-31 13:59:36 +0000 | [diff] [blame] | 29 | #define GETDIR_ID 130 /* Resource ID for our "get directory" */ |
Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 30 | #define GETFILEPROMPT_ID 132 /* Resource id for prompted get file */ |
Jack Jansen | 41fa7ea | 1995-08-31 13:59:36 +0000 | [diff] [blame] | 31 | #define PROMPT_ITEM 10 /* The prompt, at the top */ |
| 32 | #define SELECTCUR_ITEM 11 /* "Select current directory" button */ |
Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 33 | |
| 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 Jansen | 0168f27 | 1995-10-27 13:32:30 +0000 | [diff] [blame] | 44 | #define OPT_KEEPNORMAL 8 |
| 45 | #define OPT_KEEPERROR 9 |
Jack Jansen | e355c45 | 1996-03-12 13:29:04 +0000 | [diff] [blame] | 46 | #define OPT_CMDLINE 10 |
Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 47 | |
Jack Jansen | 41fa7ea | 1995-08-31 13:59:36 +0000 | [diff] [blame] | 48 | /* 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 Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 59 | /* |
| 60 | ** The following are valid both in the binary (or shared library) |
Jack Jansen | ab69eb9 | 1996-04-04 15:39:42 +0000 | [diff] [blame] | 61 | ** 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 Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 65 | */ |
| 66 | |
| 67 | /* The STR# resource for sys.path initialization */ |
| 68 | #define PYTHONPATH_ID 128 |
Jack Jansen | ab69eb9 | 1996-04-04 15:39:42 +0000 | [diff] [blame] | 69 | #define PYTHONPATHOVERRIDE_ID 129 |
Jack Jansen | c2e6dd8 | 1995-08-14 12:34:42 +0000 | [diff] [blame] | 70 | |
| 71 | /* The alis resource for locating the python home directory */ |
| 72 | #define PYTHONHOME_ID 128 |
Jack Jansen | ab69eb9 | 1996-04-04 15:39:42 +0000 | [diff] [blame] | 73 | #define PYTHONHOMEOVERRIDE_ID 129 |
Jack Jansen | a4b7e14 | 1996-02-21 16:46:57 +0000 | [diff] [blame] | 74 | |
| 75 | /* The Python options resource and offset of its members */ |
| 76 | #define PYTHONOPTIONS_ID 128 |
Jack Jansen | ab69eb9 | 1996-04-04 15:39:42 +0000 | [diff] [blame] | 77 | #define PYTHONOPTIONSOVERRIDE_ID 129 |
Jack Jansen | a4b7e14 | 1996-02-21 16:46:57 +0000 | [diff] [blame] | 78 | #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 Jansen | 01fbc68 | 1996-02-28 15:42:47 +0000 | [diff] [blame] | 85 | |
| 86 | /* From macgetpath.c: */ |
| 87 | void 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 Jansen | a4b7e14 | 1996-02-21 16:46:57 +0000 | [diff] [blame] | 91 | |