Fix an amazing number of typos & malformed sentences reported by Detlef
[python/dscho.git] / Mac / Include / pythonresources.h
blob8f6c227efd593a829d992e2f49e18d4c9587fd4f
1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
3 The Netherlands.
5 All Rights Reserved
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI not be used in advertising or publicity pertaining to
13 distribution of the software without specific, written prior permission.
15 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 ******************************************************************/
26 ** Resource-IDs in use by Python.
28 ** All resources used by the python interpreter itself fall
29 ** in the range 228-256. The range 128-228 is not used, because
30 ** there is too much chance of conflicts with other packages.
32 ** Standard python modules use resources in the range
33 ** 256-512.
35 ** Python programs that use their own resources are advised to
36 ** choose resource numbers higher than 512.
40 ** Resources that reside in the python executable (or, for
41 ** shared ppc python, in the core dynamic library)
44 /* The alert for "No Python directory, where is it?" (OBSOLETE) */
45 #define NOPYTHON_ALERT 228
46 #define YES_ITEM 1
47 #define NO_ITEM 2
48 #define CURWD_ITEM 3
50 /* The alert for "this is an applet template" */
51 #define NOPYC_ALERT 229
53 /* The dialog for our GetDirectory and PromptGetFile call */
54 #define GETDIR_ID 230 /* Resource ID for our "get directory" */
55 #define GETFILEPROMPT_ID 232 /* Resource id for prompted get file */
56 #define PROMPT_ITEM 10 /* The prompt, at the top */
57 #define SELECTCUR_ITEM 11 /* "Select current directory" button */
60 /* The dialog for interactive options */
61 #define OPT_DIALOG 231 /* Resource ID for dialog */
62 #define OPT_OK 1
63 #define OPT_CANCEL 2
64 #define OPT_INSPECT 3
65 #define OPT_VERBOSE 4
66 #define OPT_OPTIMIZE 5
67 #define OPT_UNBUFFERED 6
68 #define OPT_DEBUGGING 7
69 #define OPT_KEEPNORMAL 8
70 #define OPT_KEEPERROR 9
71 #define OPT_CMDLINE 10
72 #define OPT_OLDEXC 13
73 #define OPT_NOSITE 14
74 #define OPT_HELP 16
76 /* Dialog for 'No preferences directory' */
77 #define NOPREFDIR_ID 233
79 /* Dialog for 'Bad or outdated preferences' */
80 #define BADPREFERENCES_ID 234
81 #define BADPREF_DELETE 1
82 #define BADPREF_CONTINUE 2
83 #define BADPREF_QUIT 3
84 /* Dialog for 'Bad preference file' */
85 #define BADPREFFILE_ID 235
87 /* About box */
88 #define ABOUT_ID 236
90 /* No preferences file name resource */
91 #define NOPREFNAME_ID 237
93 /* EditPythonPrefs range. Needed here to forestall conflicts with applets */
94 #define EDITPYTHONPREFS_MIN 508
95 #define EDITPYTHONPREFS_MAX 511
96 /* twit range. Again needed to forestall conflicts with scripts using their own resources */
97 #define TWIT_MIN 500
98 #define TWIT_MAX 507
99 /* Bruce range. The same */
100 #define BRUCE_MIN 468
101 #define BRUCE_MAX 499
104 ** The following are valid both in the binary (or shared library)
105 ** and in the Preferences file.
106 ** For all these the override is tried first, in the application resource fork
107 ** only, this allows an applet to override standard settings.
108 ** If there is no override resource the preferences file is added to the head
109 ** of the resource file chain and the non-override version of the resource is
110 ** searched in any resource file.
112 ** The effect of this is that, for example, a 'Popt' of 228 in the application or
113 ** shared library provides default options for use when no preferences are set,
114 ** while a 'Popt' of 229 (in the application *only*) overrides any options in the
115 ** preferences file.
118 /* The STR resource that holds the preference file name */
119 #define PREFFILENAME_ID 228 /* For Rez only */
120 #define PREFFILENAME_PASCAL_NAME "PythonPreferenceFileName"
121 #define PREFFILENAME_NAME "\pPythonPreferenceFileName"
123 /* The STR# resource for sys.path initialization */
124 #define PYTHONPATH_ID 228
125 #define PYTHONPATHOVERRIDE_ID 229
127 /* The alis resource for locating the python home directory */
128 #define PYTHONHOME_ID 228
129 #define PYTHONHOMEOVERRIDE_ID 229
131 /* The Python options resource and offset of its members */
132 #define PYTHONOPTIONS_ID 228
133 #define PYTHONOPTIONSOVERRIDE_ID 229
134 #if 0
135 #define POPT_INSPECT 0
136 #define POPT_VERBOSE 1
137 #define POPT_OPTIMIZE 2
138 #define POPT_UNBUFFERED 3
139 #define POPT_DEBUGGING 4
140 #define POPT_KEEPNORM 5
141 #define POPT_KEEPERR 6
142 #endif
144 #define POPT_VERSION_CURRENT 4 /* Current version number */
146 #ifndef rez
147 typedef struct PyMac_PrefRecord {
148 unsigned char version;
149 unsigned char inspect;
150 unsigned char verbose;
151 unsigned char optimize;
152 unsigned char unbuffered;
153 unsigned char debugging;
154 unsigned char keep_normal;
155 unsigned char keep_error;
156 unsigned char nointopt;
157 unsigned char noargs;
158 unsigned char oldexc;
159 unsigned char nosite;
160 } PyMac_PrefRecord;
161 #endif
163 /* The GUSI options resources */
164 #define GUSIOPTIONS_ID 10240
165 #define GUSIOPTIONSOVERRIDE_ID 10241
167 #ifndef rez
168 /* From macgetpath.c: */
169 void PyMac_PreferenceOptions Py_PROTO((PyMac_PrefRecord *));
170 char * PyMac_GetPythonDir Py_PROTO((void));
171 #endif