1 /*********************************************************************
2 Project
: GUSI
- Grand Unified Socket Interface
3 File
: GUSI
.r
- Include this
4 Author
: Matthias Neeracher
8 Revision
1.1 1998/08/18 14:52:37 jack
9 Putting Python
-specific GUSI modifications under CVS
.
11 Revision
1.3 1994/12/30 19:33:34 neeri
12 Enlargened message box
for select folder dialog
.
14 Revision
1.2 1994/08/10 00:34:18 neeri
15 Sanitized
for universal headers
.
17 Revision
1.1 1994/02/25 02:12:04 neeri
20 Revision
0.5 1993/05/21 00:00:00 neeri
23 Revision
0.4 1993/01/31 00:00:00 neeri
26 Revision
0.3 1993/01/03 00:00:00 neeri
29 Revision
0.2 1992/09/24 00:00:00 neeri
30 Don
't include CKID, create GUSIRsrc_P.h
32 Revision 0.1 1992/07/13 00:00:00 neeri
35 *********************************************************************/
38 #include "GUSIRsrc_P.h"
40 include "GUSI.rsrc" not 'ckid
';
42 /* Define a resource ('GU…I
', GUSIRsrcID) to override GUSI defaults
43 To avoid having to change the Rez file every time I introduce another
44 feature, the preprocessor variable GUSI_PREF_VERSION by default keeps
45 everything compatible with version 1.0.2. Just define GUSI_PREF_VERSION
46 to be the version you want to use.
49 #ifndef GUSI_PREF_VERSION
50 #define GUSI_PREF_VERSION '0102'
54 literal longint text = 'TEXT
'; /* Type for creat'ed files
*/
55 literal longint mpw
= 'MPS '; /* Creator
for creat
'ed files */
56 byte noAutoSpin, autoSpin; /* Automatically spin cursor ? */
57 #if GUSI_PREF_VERSION > '0102'
58 boolean useChdir, dontUseChdir; /* Use chdir() ? */
59 boolean approxStat, accurateStat; /* statbuf.st_nlink = # of subdirectories ? */
60 #if GUSI_PREF_VERSION >= '0181'
61 boolean noDelayConsole, DelayConsole; /* Delay opening console window until needed? */
64 boolean noTCPDaemon, isTCPDaemon; /* Inetd client ? */
65 boolean noUDPDaemon, isUDPDaemon;
67 #if GUSI_PREF_VERSION >= '0150'
68 #if GUSI_PREF_VERSION >= '0181'
69 boolean wantAppleEvents, noAppleEvents; /* Always solicit AppleEvents */
71 boolean noConsole, hasConsole; /* Are we providing our own dev:console ? (Obsolete) */
73 #if GUSI_PREF_VERSION >= '0180'
74 boolean autoInitGraf, noAutoInitGraf; /* Automatically do InitGraf ? */
75 boolean exclusiveOpen, sharedOpen; /* Shared open() ? */
76 boolean noSigPipe, sigPipe; /* raise SIGPIPE on write to closed PIPE */
83 literal longint = GUSI_PREF_VERSION;
84 #if GUSI_PREF_VERSION >= '0120'
85 integer = $$Countof(SuffixArray);
86 wide array SuffixArray {
87 literal longint; /* Suffix of file */
88 literal longint; /* Type for file */
89 literal longint; /* Creator for file */
102 resource 'TMPL
' (GUSIRsrcID, "GU…I") {
104 "Type of created files", 'TNAM
',
105 "Creator of created files", 'TNAM
',
106 "Automatically spin cursor", 'DBYT
',
107 #if GUSI_PREF_VERSION > '0102'
108 "Not using chdir()", 'BBIT
',
109 "Accurate stat()", 'BBIT
',
110 "TCP daemon", 'BBIT
',
111 "UDP daemon", 'BBIT
',
112 #if GUSI_PREF_VERSION >= '0150'
113 "Own Console", 'BBIT
',
117 #if GUSI_PREF_VERSION >= '0180'
118 "Don't initialize QuickDraw
", 'BBIT',
119 "Open files shared
", 'BBIT',
120 "Raise SIGPIPE
", 'BBIT',
126 "Version (don
't change)", 'TNAM
',
127 #if GUSI_PREF_VERSION >= '0120'
128 "NumSuffices", 'OCNT
',
131 "Type for suffix", 'TNAM
',
132 "Creator for suffix", 'TNAM
',
139 resource 'DLOG
' (GUSIRsrcID, "Get Directory") {
147 alertPositionMainScreen
150 resource 'DITL
' (GUSIRsrcID, "Get Directory") {
152 { 142, 256, 160, 336}, Button {enabled,"Open"},
153 {1152, 59, 1232, 77}, Button {enabled,"Hidden"},
154 { 193, 256, 211, 336}, Button {enabled,"Cancel"},
155 { 43, 232, 63, 347}, UserItem {disabled},
156 { 72, 256, 90, 336}, Button {enabled,"Eject"},
157 { 97, 256, 115, 336}, Button {enabled,"Drive"},
158 { 43, 12, 189, 230}, UserItem {enabled},
159 { 43, 229, 189, 246}, UserItem {enabled},
160 { 128, 252, 129, 340}, UserItem {disabled},
161 {1044, 20, 1145, 116}, StaticText {disabled,""},
162 { 167, 256, 185, 336}, Button {enabled,"Directory"},
163 { 0, 30, 18, 215}, Button {enabled,"Select Current Directory:"},
164 { 200, 20, 1145, 222}, StaticText {disabled,"Select a Folder"}