2019-04-10 23:20:57 +00:00
|
|
|
#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 previousPageButton 1008
|
|
|
|
#define pageText 1009
|
|
|
|
#define pageNumberLine 1010
|
|
|
|
#define ofPagesText 1011
|
|
|
|
#define nextPageButton 1012
|
|
|
|
#define mountDiskButton 1013
|
|
|
|
|
|
|
|
resource rWindParam1 (winDiskBrowser) {
|
|
|
|
fTitle+fClose+fFlex+fMove+fVis, /* wFrameBits */
|
|
|
|
nil, /* wTitle */
|
|
|
|
0, /* wRefCon */
|
|
|
|
{0,0,0,0}, /* ZoomRect */
|
|
|
|
nil, /* 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 */
|
|
|
|
$0009 /* wInVerb */
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rControlList (winDiskBrowser) {{
|
2019-04-11 19:40:12 +00:00
|
|
|
mountDiskButton,
|
2019-04-10 23:20:57 +00:00
|
|
|
previousPageButton,
|
|
|
|
pageText,
|
|
|
|
pageNumberLine,
|
|
|
|
ofPagesText,
|
|
|
|
nextPageButton,
|
2019-04-11 19:40:12 +00:00
|
|
|
disksList,
|
|
|
|
findDisksForText,
|
|
|
|
forIIGSRadio,
|
|
|
|
forAnyAppleIIRadio,
|
|
|
|
searchLine,
|
|
|
|
searchButton
|
2019-04-10 23:20:57 +00:00
|
|
|
}};
|
|
|
|
|
|
|
|
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, 0, 0},
|
|
|
|
SimpleButtonControl {{
|
|
|
|
DefaultButton,
|
|
|
|
$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, 410}, /* control rect */
|
|
|
|
ListControl {{
|
|
|
|
$0007, /* flags */
|
2019-04-11 23:28:05 +00:00
|
|
|
$1400, /* more flags */
|
2019-04-10 23:20:57 +00:00
|
|
|
0, /* refcon */
|
|
|
|
0, /* list size */
|
|
|
|
10, /* List View */
|
|
|
|
$0000, /* List Type */
|
|
|
|
0, /* List Start */
|
|
|
|
10, /* ListMemHeight */
|
2019-04-14 04:25:02 +00:00
|
|
|
9, /* List Mem Size */
|
2019-04-10 23:20:57 +00:00
|
|
|
0, /* List Ref */
|
|
|
|
0 /* Color Ref */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rControlTemplate (previousPageButton) {
|
|
|
|
previousPageButton,
|
|
|
|
{150, 10, 161, 34},
|
|
|
|
SimpleButtonControl {{
|
|
|
|
0,
|
2019-04-11 05:50:38 +00:00
|
|
|
$1000+RefIsResource,
|
2019-04-10 23:20:57 +00:00
|
|
|
0,
|
|
|
|
previousPageButton,
|
|
|
|
0, /* color table ref */
|
|
|
|
{"","",0,0} /* key equivalent */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rPString(previousPageButton) { "<" };
|
|
|
|
|
|
|
|
resource rControlTemplate (pageText) {
|
|
|
|
pageText, /* control ID */
|
|
|
|
{151, 38, 163, 90}, /* control rect */
|
|
|
|
statTextControl {{
|
|
|
|
fBlastText, /* flags */
|
|
|
|
$1000+RefIsResource, /* moreFlags */
|
|
|
|
0, /* refCon */
|
|
|
|
pageText /* title ref */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rTextForLETextBox2 (pageText) {
|
|
|
|
"Page"
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rControlTemplate (pageNumberLine) {
|
|
|
|
pageNumberLine,
|
|
|
|
{149, 72, 162, 116},
|
|
|
|
editLineControl {{
|
|
|
|
0,
|
|
|
|
$7000+RefIsResource,
|
|
|
|
0,
|
2019-04-11 05:50:38 +00:00
|
|
|
4, /* max size */
|
2019-04-10 23:20:57 +00:00
|
|
|
pageNumberLine /* text ref */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
2019-04-11 05:50:38 +00:00
|
|
|
resource rPString (pageNumberLine) { "" };
|
2019-04-10 23:20:57 +00:00
|
|
|
|
|
|
|
resource rControlTemplate (ofPagesText) {
|
|
|
|
ofPagesText, /* control ID */
|
|
|
|
{151, 119, 163, 170}, /* control rect */
|
|
|
|
statTextControl {{
|
|
|
|
fBlastText, /* flags */
|
|
|
|
$1000+RefIsResource, /* moreFlags */
|
|
|
|
0, /* refCon */
|
|
|
|
ofPagesText /* title ref */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rTextForLETextBox2 (ofPagesText) {
|
2019-04-11 19:40:12 +00:00
|
|
|
" "
|
2019-04-10 23:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
resource rControlTemplate (nextPageButton) {
|
|
|
|
nextPageButton,
|
|
|
|
{150, 168, 161, 192},
|
|
|
|
SimpleButtonControl {{
|
|
|
|
0,
|
2019-04-11 05:50:38 +00:00
|
|
|
$1000+RefIsResource,
|
2019-04-10 23:20:57 +00:00
|
|
|
0,
|
|
|
|
nextPageButton,
|
|
|
|
0, /* color table ref */
|
|
|
|
{"","",0,0} /* key equivalent */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rPString(nextPageButton) { ">" };
|
|
|
|
|
|
|
|
resource rControlTemplate (mountDiskButton) {
|
|
|
|
mountDiskButton,
|
|
|
|
{152, 305, 0, 0},
|
|
|
|
SimpleButtonControl {{
|
2019-04-11 05:50:38 +00:00
|
|
|
0,
|
|
|
|
$1000+RefIsResource,
|
2019-04-10 23:20:57 +00:00
|
|
|
0,
|
|
|
|
mountDiskButton,
|
|
|
|
0, /* color table ref */
|
|
|
|
{"","",0,0} /* key equivalent */
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
|
|
|
|
resource rPString(mountDiskButton) { "Mount Disk" };
|
2019-04-15 00:24:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Error messages
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define searchErrorAlert 3000
|
|
|
|
|
|
|
|
resource rAlertString (searchErrorAlert) {
|
|
|
|
"52/"
|
|
|
|
"There was an error when searching for disks. (error code *0)"
|
|
|
|
"/^#0\$00"
|
|
|
|
};
|