Repository navigation
Expand file tree
/
Copy pathdiskbrowser.rez
More file actions
202 lines (175 loc) · 5.88 KB
/
Copy pathdiskbrowser.rez
File metadata and controls
202 lines (175 loc) · 5.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#include "types.rez"
#define winDiskBrowser 1001
#define searchLine 1002
#define searchButton 1003
#define findDisksForText 1004
#define forIIGSRadio 1005
#define forAnyAppleIIRadio 1006
#define disksList 1007
#define mountDiskButton 1008
/* This should be kept in sync with version.h. */
resource rVersion (1) {
{
1,0,0, /* Version number */
release, 0, /* Release version */
},
verUS, /* Region code */
"Archive.org Disk Browser", /* Title */
"By Stephen Heumann"
};
resource rWindParam1 (winDiskBrowser) {
fTitle+fClose+fFlex+fMove+fVis, /* wFrameBits */
winDiskBrowser, /* wTitle */
0, /* wRefCon */
{0,0,0,0}, /* ZoomRect */
winDiskBrowser, /* wColor ID */
{0,0}, /* Origin */
{0,0}, /* data size */
{0,0}, /* max height-width */
{0,0}, /* scroll vertical, horizontal */
{0,0}, /* page vertical, horizontal */
0, /* wInfoRefCon */
0, /* wInfoHeight */
{27,5,198,425}, /* wPosition */
infront, /* wPlane */
winDiskBrowser, /* wStorage */
$0A09 /* wInVerb */
};
resource rPString(winDiskBrowser) { " Archive.org Disk Browser " };
resource rWindColor (winDiskBrowser) {
0x0000, /* frameColor */
0x0F00, /* titleColor */
0x020F, /* tbarColor */
0xF0F0, /* growColor */
0x00F0 /* infoColor */
};
resource rControlList (winDiskBrowser) {{
mountDiskButton,
disksList,
findDisksForText,
forIIGSRadio,
forAnyAppleIIRadio,
searchLine,
searchButton
}};
resource rControlTemplate (searchLine) {
searchLine,
{8, 10, 26, 300},
editLineControl {{
0,
$7000+RefIsResource,
0,
255, /* max size */
searchLine /* text ref */
}};
};
resource rPString (searchLine) { "" };
resource rControlTemplate (searchButton) {
searchButton,
{10, 309, 24, 410},
SimpleButtonControl {{
0,
$3000+RefIsResource,
0,
searchButton,
0, /* color table ref */
{"\$0D","\$0D",0,0} /* key equivalent = Return */
}};
};
resource rPString(searchButton) { "Find Disks" };
resource rControlTemplate (findDisksForText) {
findDisksForText, /* control ID */
{30, 9, 42, 118}, /* control rect */
statTextControl {{
fBlastText, /* flags */
$1000+RefIsResource, /* moreFlags */
0, /* refCon */
findDisksForText /* title ref */
}};
};
resource rTextForLETextBox2 (findDisksForText) {
"Find disks for:"
};
resource rControlTemplate (forIIGSRadio) {
forIIGSRadio,
{30,120,0,0},
RadioControl {{
$0002,
$1002,
0,
forIIGSRadio, /* Title ref */
1 /* initial value */
}};
};
resource rPString (forIIgsRadio) {"Apple IIGS"};
resource rControlTemplate (forAnyAppleIIRadio) {
forAnyAppleIIRadio,
{30,235,0,0},
RadioControl {{
$0002,
$1002,
0,
forAnyAppleIIRadio, /* Title ref */
0 /* initial value */
}};
};
resource rPString (forAnyAppleIIRadio) {"Any Apple II"};
resource rControlTemplate (disksList) {
disksList, /* control ID */
{45, 10, 147, 386}, /* control rect */
ListControl {{
$0000, /* flags */
$1400, /* more flags */
0, /* refcon */
0, /* list size */
10, /* List View */
$0003, /* List Type */
0, /* List Start */
10, /* ListMemHeight */
13, /* List Mem Size */
0, /* List Ref */
0 /* Color Ref */
}};
};
resource rControlTemplate (mountDiskButton) {
mountDiskButton,
{152, 305, 166, 410},
SimpleButtonControl {{
0,
$1000+RefIsResource,
0,
mountDiskButton,
0, /* color table ref */
{"\$0D","\$0D",0,0} /* key equivalent */
}};
};
resource rPString(mountDiskButton) { "Mount Disk" };
/*
* Error messages
*/
#define searchErrorAlert 3000
#define mountErrorAlert 3001
#define marinettiVersionWarning 3002
resource rAlertString (searchErrorAlert) {
"72/"
"There was an error when searching for disks.\n"
"\n"
"*0"
"/^#0\$00"
};
resource rAlertString (mountErrorAlert) {
"72/"
"There was an error when trying to mount a disk.\n"
"\n"
"*0"
"/^#0\$00"
};
resource rAlertString (marinettiVersionWarning) {
"84:"
"NetDisk and the Archive.org Disk Browser are designed for use with "
"Marinetti 3.0b11 or later. You are currently using an older version of "
"Marinetti. You can try to use NetDisk with your current Marinetti "
"version, but you may experience I/O errors or other problems. "
"To ensure proper operation, please upgrade Marinetti."
":^#6\$00"
};