File indexing completed on 2018-03-02 18:44:51 UTC
view on githubraw file Latest commit ec6cf3b0 on 2003-08-26 20:45:25 UTC
ec6cf3b09d Ed H*0001 /* macmpack.h -- resources for mac interface to mpack
0002 */
0003 /* (C) Copyright 1995 by Carnegie Mellon University
0004 * All Rights Reserved.
0005 *
0006 * Permission to use, copy, modify, distribute, and sell this software
0007 * and its documentation for any purpose is hereby granted without
0008 * fee, provided that the above copyright notice appear in all copies
0009 * and that both that copyright notice and this permission notice
0010 * appear in supporting documentation, and that the name of Carnegie
0011 * Mellon University not be used in advertising or publicity
0012 * pertaining to distribution of the software without specific,
0013 * written prior permission. Carnegie Mellon University makes no
0014 * representations about the suitability of this software for any
0015 * purpose. It is provided "as is" without express or implied
0016 * warranty.
0017 *
0018 * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
0019 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0020 * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
0021 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0022 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
0023 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
0024 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0025 * SOFTWARE.
0026 */
0027 /* (C) Copyright 1993-1995 by Christopher J. Newman
0028 * All Rights Reserved.
0029 *
0030 * Permission to use, copy, modify, distribute, and sell this software and its
0031 * documentation for any purpose is hereby granted without fee, provided that
0032 * the above copyright notice appear in all copies and that both that
0033 * copyright notice and this permission notice appear in supporting
0034 * documentation, and that the name of Christopher J. Newman not be used in
0035 * advertising or publicity pertaining to distribution of the software without
0036 * specific, written prior permission. Christopher J. Newman makes no
0037 * representations about the suitability of this software for any purpose. It
0038 * is provided "as is" without express or implied warranty.
0039 *
0040 * CHRISTOPHER J. NEWMAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0041 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
0042 * SHALL CHRISTOPHER J. NEWMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0043 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0044 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
0045 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
0046 * OF THIS SOFTWARE.
0047 */
0048
0049 #define progDLOG 128
0050 #define decodeDLOG 129
0051 #define warnALRT 131
0052 #define errorALRT 133
0053 #define prefsDLOG 134
0054 #define dstatDLOG 135
0055 #define sendDLOG 136
0056
0057 #define prefsID 128
0058 #define IDnaID 1000
0059
0060 #define mainMBAR 128
0061
0062 #define textWIND 128
0063 #define helpWIND 129
0064
0065 #define helpTEXT 128
0066 #define helpSTYL 128
0067
0068 /* file menu */
0069 #define iEncode 1
0070 #define iDecode 2
0071 #define iInsert 3
0072 #define iClose 4
0073 #define iPrefs 6
0074 #define iQuit 8
0075
0076 /* help menu */
0077 #define iHelp 1
0078
0079 /* progress dialog items */
0080 #define iWorkText 1
0081 #define iProgress 3
0082
0083 /* decode dialog items */
0084 #define iAdd 3
0085 #define iRemove 4
0086 #define iFileList 5
0087 #define iFileScroll 6
0088
0089 /* replace alert */
0090 #define iNewname 1
0091 #define iReplace 2
0092
0093 /* preferences dialog */
0094 #define iHost 3
0095 #define iAuto 6
0096 #define iData 7
0097 #define iSingle 8
0098 #define iDouble 9
0099 #define iTextEncode 10
0100 #define iQuitFinish 11
0101 #define iEmailAddr 12
0102 #define iMailServer 15
0103 #define iSet 16
0104
0105 /* decode status dialog */
0106 #define iStatus 2
0107 #define iStatScroll 3
0108
0109 /* encode/send dialog */
0110 #define iSubj 4
0111 #define iEmail 5
0112 #define iSavefile 6
0113 #define iEmailto 7
0114 #define iLimit 8
0115 #define iPartLimit 9
0116 #define iBar 11
0117 #define iDescEdit 3
0118
0119 /* mpack prefs folder */
0120 extern struct pref_folder {
0121 short refnum;
0122 FSSpec fspec;
0123 unsigned char prefs[257];
0124 } *pfolder;
0125
0126 /* mpack preferences */
0127 extern struct mpack_preferences {
0128 short encoding;
0129 short extract_text;
0130 short quit_finished;
0131 short reserved[4];
0132 char internet_host[2]; /* C string */
0133 } **mpack_prefs;
0134
0135 /* encodings */
0136 #define EN_AUTO 0
0137 #define EN_DATA 1
0138 #define EN_DOUBLE 2
0139 #define EN_SINGLE 3
0140
0141 /* shared routines */
0142 FILE *Macopen(FILE *, Str255, short, long, short, short, SignedByte);
0143 void maccleanup(void);
0144 void MapTypeCreator(char *, OSType);
0145
0146 /* used for chatting */
0147 void statrefresh(void);
0148 void stattext(Str255, unsigned char);
0149 extern short didchat;
0150
0151 /* buffer for copy operations */
0152 #define COPY_BUFSIZE 1024
0153 extern char copy_buf[COPY_BUFSIZE];
0154
0155 /* watch cursor */
0156 extern Cursor watch;