2020-07-20 23:14:57 +01:00
|
|
|
#include "ssheven-constants.r"
|
2020-10-04 17:19:49 +01:00
|
|
|
#include "ssheven-icons.r"
|
2020-07-20 23:14:57 +01:00
|
|
|
|
2020-07-17 02:32:31 +01:00
|
|
|
#include "Dialogs.r"
|
2020-10-04 17:19:49 +01:00
|
|
|
#include "Processes.r"
|
|
|
|
#include "MacTypes.r"
|
|
|
|
#include "Finder.r"
|
|
|
|
#include "Menus.r"
|
|
|
|
#include "Controls.r"
|
|
|
|
#include "ControlDefinitions.r"
|
2020-07-17 02:32:31 +01:00
|
|
|
|
2020-08-06 01:59:49 +01:00
|
|
|
resource 'DLOG' (DLOG_ABOUT, purgeable) {
|
|
|
|
{0, 0, 148, 420},
|
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
goAway,
|
|
|
|
0,
|
|
|
|
DITL_ABOUT,
|
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_ABOUT, purgeable) {
|
|
|
|
{
|
|
|
|
{ 10, 10, 138, 138 },
|
|
|
|
Picture { enabled, PICT_ABOUT };
|
|
|
|
|
|
|
|
{ 34, 160, 54, 410},
|
|
|
|
StaticText { disabled, "ssheven" };
|
|
|
|
|
|
|
|
{ 64, 160, 84, 410},
|
|
|
|
StaticText { disabled, SSHEVEN_LONG_VERSION };
|
|
|
|
|
|
|
|
{ 94, 160, 114, 410},
|
|
|
|
StaticText { disabled, "https://github.com/cy384/ssheven" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-07-24 00:46:29 +01:00
|
|
|
resource 'DLOG' (DLOG_CONNECT) {
|
2020-09-06 01:04:55 +01:00
|
|
|
{ 50, 100, 195, 420 },
|
2020-07-17 02:32:31 +01:00
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
noGoAway,
|
|
|
|
0,
|
2020-10-04 17:19:49 +01:00
|
|
|
DITL_CONNECT,
|
2020-07-17 02:32:31 +01:00
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
2020-07-24 00:46:29 +01:00
|
|
|
resource 'DITL' (DITL_CONNECT) {
|
2020-07-17 02:32:31 +01:00
|
|
|
{
|
2020-09-06 01:04:55 +01:00
|
|
|
{ 115, 320-10-80, 135, 320-10 },
|
2020-07-17 02:32:31 +01:00
|
|
|
Button { enabled, "Connect" };
|
|
|
|
|
|
|
|
{ 190-10-20-5, 320-10-80-5, 190-10+5, 320-10+5 },
|
|
|
|
UserItem { enabled };
|
|
|
|
|
2020-09-06 20:35:13 +01:00
|
|
|
{ 10, 10, 30, 270 },
|
|
|
|
StaticText { enabled, "Address and port" };
|
2020-07-17 02:32:31 +01:00
|
|
|
|
2020-09-06 20:35:13 +01:00
|
|
|
{ 35, 15, 51, 260 },
|
|
|
|
EditText { enabled, "10.0.2.2" };
|
|
|
|
|
|
|
|
{ 35, 270, 51, 305 },
|
|
|
|
EditText { enabled, "22" };
|
2020-07-17 02:32:31 +01:00
|
|
|
|
|
|
|
{ 60, 10, 80, 310 },
|
|
|
|
StaticText { enabled, "Username" };
|
|
|
|
|
2020-09-14 23:51:29 +01:00
|
|
|
{ 85, 15, 101, 150 },
|
2020-07-17 02:32:31 +01:00
|
|
|
EditText { enabled, "" };
|
|
|
|
|
2020-09-06 01:04:55 +01:00
|
|
|
{ 115, 10, 135, 90 },
|
2020-07-20 20:30:56 +01:00
|
|
|
Button { enabled, "Cancel" };
|
2020-09-14 23:51:29 +01:00
|
|
|
|
|
|
|
{ 85, 160, 101, 245 },
|
|
|
|
RadioButton { enabled, "Password" };
|
|
|
|
|
|
|
|
{ 85, 250, 101, 310 },
|
|
|
|
RadioButton { enabled, "Key" };
|
2020-07-17 02:32:31 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-07-24 00:46:29 +01:00
|
|
|
resource 'DITL' (DITL_OT) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "Exit" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Open Transport required but not found!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_OT, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_OT,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-07-24 00:51:33 +01:00
|
|
|
resource 'DITL' (DITL_TM) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "Exit" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Thread Manager required but not found!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_TM, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
2020-09-16 02:17:02 +01:00
|
|
|
DITL_TM,
|
2020-07-24 00:51:33 +01:00
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-07-25 23:57:03 +01:00
|
|
|
resource 'DITL' (DITL_CPU_SLOW) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Your CPU is probably too slow!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_CPU_SLOW, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_CPU_SLOW,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_CPU_BAD) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "SSHeven requires a 68020 or later!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_CPU_BAD, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_CPU_BAD,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-09-06 01:04:55 +01:00
|
|
|
resource 'DLOG' (DLOG_PASSWORD) {
|
|
|
|
{ 50, 100, 150, 420 },
|
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
noGoAway,
|
|
|
|
0,
|
|
|
|
DLOG_PASSWORD,
|
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_PASSWORD) {
|
|
|
|
{
|
|
|
|
{ 70, 320-10-80, 90, 320-10 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 190-10-20-5, 320-10-80-5, 190-10+5, 320-10+5 },
|
|
|
|
UserItem { enabled };
|
|
|
|
|
|
|
|
{ 10, 10, 30, 310 },
|
|
|
|
StaticText { enabled, "Enter password:" };
|
|
|
|
|
|
|
|
{ 35, 15, 51, 305 },
|
|
|
|
EditText { enabled, "" };
|
|
|
|
|
|
|
|
{ 240, 10, 240, 10 },
|
|
|
|
EditText { enabled, "" };
|
|
|
|
|
|
|
|
{ 70, 10, 90, 90 },
|
|
|
|
Button { enabled, "Cancel" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-09-16 02:17:02 +01:00
|
|
|
resource 'DLOG' (DLOG_KEY_PASSWORD) {
|
|
|
|
{ 50, 100, 150, 420 },
|
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
noGoAway,
|
|
|
|
0,
|
|
|
|
DLOG_KEY_PASSWORD,
|
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_KEY_PASSWORD) {
|
|
|
|
{
|
|
|
|
{ 70, 320-10-80, 90, 320-10 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 190-10-20-5, 320-10-80-5, 190-10+5, 320-10+5 },
|
|
|
|
UserItem { enabled };
|
|
|
|
|
|
|
|
{ 10, 10, 30, 310 },
|
|
|
|
StaticText { enabled, "Key decryption password:" };
|
|
|
|
|
|
|
|
{ 35, 15, 51, 305 },
|
|
|
|
EditText { enabled, "" };
|
|
|
|
|
|
|
|
{ 240, 10, 240, 10 },
|
|
|
|
EditText { enabled, "" };
|
|
|
|
|
|
|
|
{ 70, 10, 90, 90 },
|
|
|
|
Button { enabled, "Cancel" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-09-13 17:21:17 +01:00
|
|
|
resource 'DITL' (DITL_PW_FAIL) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Server rejected username/password!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_PW_FAIL, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_PW_FAIL,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-09-16 02:17:02 +01:00
|
|
|
resource 'DITL' (DITL_PUBKEY) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Please locate your public key." };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_PUBKEY, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_PUBKEY,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_PRIVKEY) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Please locate your private key." };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_PRIVKEY, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_PRIVKEY,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-09-16 02:33:00 +01:00
|
|
|
resource 'DITL' (DITL_FILE_FAIL) {
|
|
|
|
{
|
|
|
|
{ 50, 260, 70, 340 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 10, 70, 30, 340 },
|
|
|
|
StaticText { enabled, "Couldn't load key files!" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'ALRT' (ALRT_FILE_FAIL, purgeable) {
|
|
|
|
{ 50, 100, 50+80, 100+350 },
|
|
|
|
DITL_FILE_FAIL,
|
|
|
|
|
|
|
|
/* OK means draw default border on first button */
|
|
|
|
{
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent,
|
|
|
|
OK, visible, silent
|
|
|
|
},
|
|
|
|
alertPositionMainScreen
|
|
|
|
};
|
|
|
|
|
2020-10-11 00:45:59 +01:00
|
|
|
resource 'DLOG' (DLOG_NEW_HOST) {
|
2020-10-11 01:06:53 +01:00
|
|
|
{ 40, 30, 40+100, 30+390 },
|
2020-10-11 00:45:59 +01:00
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
noGoAway,
|
|
|
|
0,
|
|
|
|
DLOG_NEW_HOST,
|
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_NEW_HOST) {
|
|
|
|
{
|
2020-10-11 01:06:53 +01:00
|
|
|
{ 70, 300, 70+20, 300+80 },
|
2020-10-11 00:45:59 +01:00
|
|
|
Button { enabled, "Reject" };
|
|
|
|
|
2020-10-11 01:06:53 +01:00
|
|
|
{ 70, 300, 70+20, 300+80 },
|
2020-10-11 00:45:59 +01:00
|
|
|
UserItem { enabled };
|
|
|
|
|
2020-10-11 01:06:53 +01:00
|
|
|
{ 10, 20, 10+20, 20+320 },
|
2020-10-11 00:45:59 +01:00
|
|
|
StaticText { enabled, "Unrecognized server public key. SHA256 hash:" };
|
|
|
|
|
2020-10-11 01:06:53 +01:00
|
|
|
{ 30, 20, 30+20, 20+360 },
|
2020-10-11 00:45:59 +01:00
|
|
|
StaticText { enabled, "01234567890123456789012345678901234567890123456789" };
|
|
|
|
|
|
|
|
{ 70, 10, 90, 90 },
|
|
|
|
Button { enabled, "Accept" };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-07-17 02:32:31 +01:00
|
|
|
resource 'SIZE' (-1) {
|
|
|
|
reserved,
|
|
|
|
acceptSuspendResumeEvents,
|
|
|
|
reserved,
|
|
|
|
canBackground,
|
|
|
|
doesActivateOnFGSwitch,
|
|
|
|
backgroundAndForeground,
|
|
|
|
dontGetFrontClicks,
|
|
|
|
ignoreChildDiedEvents,
|
|
|
|
is32BitCompatible,
|
|
|
|
notHighLevelEventAware,
|
|
|
|
onlyLocalHLEvents,
|
|
|
|
notStationeryAware,
|
|
|
|
dontUseTextEditServices,
|
|
|
|
reserved,
|
|
|
|
reserved,
|
|
|
|
reserved,
|
2020-07-20 23:14:57 +01:00
|
|
|
SSHEVEN_MINIMUM_PARTITION,
|
|
|
|
SSHEVEN_REQUIRED_PARTITION
|
2020-07-17 02:32:31 +01:00
|
|
|
};
|
2020-07-19 17:00:58 +01:00
|
|
|
|
|
|
|
/* see macintosh tb essentials page 7-31 */
|
2020-07-20 23:14:57 +01:00
|
|
|
/* yes, we need two */
|
|
|
|
/* first one displayed in version field of info window */
|
2020-07-19 17:00:58 +01:00
|
|
|
resource 'vers' (1, purgeable) {
|
2020-07-20 23:14:57 +01:00
|
|
|
SSHEVEN_VERSION_MAJOR, SSHEVEN_VERSION_MINOR,
|
|
|
|
SSHEVEN_RELEASE_TYPE, SSHEVEN_VERSION_PRERELEASE,
|
|
|
|
SSHEVEN_RELEASE_REGION,
|
|
|
|
SSHEVEN_VERSION,
|
|
|
|
SSHEVEN_LONG_VERSION
|
2020-07-19 17:00:58 +01:00
|
|
|
};
|
|
|
|
|
2020-07-20 23:14:57 +01:00
|
|
|
/* second one displayed beneath icon at top of info window */
|
2020-07-19 17:00:58 +01:00
|
|
|
resource 'vers' (2, purgeable) {
|
2020-07-20 23:14:57 +01:00
|
|
|
SSHEVEN_VERSION_MAJOR, SSHEVEN_VERSION_MINOR,
|
|
|
|
SSHEVEN_RELEASE_TYPE, SSHEVEN_VERSION_PRERELEASE,
|
|
|
|
SSHEVEN_RELEASE_REGION,
|
|
|
|
SSHEVEN_VERSION,
|
|
|
|
SSHEVEN_LONG_VERSION
|
2020-07-19 17:00:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* signature resource */
|
|
|
|
type 'SSH7' as 'STR ';
|
|
|
|
resource 'SSH7' (0, purgeable) {
|
2020-07-20 23:14:57 +01:00
|
|
|
SSHEVEN_DESCRIPTION
|
2020-07-19 17:00:58 +01:00
|
|
|
};
|
|
|
|
|
2020-09-20 04:02:58 +01:00
|
|
|
/* application -> icon relation */
|
|
|
|
resource 'FREF' (SSHEVEN_APPLICATION_ICON, purgeable) {
|
2020-07-24 00:46:29 +01:00
|
|
|
'APPL', 0, ""
|
2020-07-19 17:00:58 +01:00
|
|
|
};
|
|
|
|
|
2020-09-20 04:02:58 +01:00
|
|
|
/* preferences file -> icon relation */
|
|
|
|
resource 'FREF' (SSHEVEN_FILE_ICON, purgeable) {
|
|
|
|
'SH7p', 1, ""
|
|
|
|
};
|
|
|
|
|
2020-07-19 17:00:58 +01:00
|
|
|
resource 'BNDL' (128, purgeable) {
|
|
|
|
'SSH7', 0,
|
|
|
|
{
|
2020-09-20 04:02:58 +01:00
|
|
|
'ICN#', {0, SSHEVEN_APPLICATION_ICON, 1, SSHEVEN_FILE_ICON},
|
|
|
|
'FREF', {0, SSHEVEN_APPLICATION_ICON, 1, SSHEVEN_FILE_ICON}
|
2020-07-19 17:00:58 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-08-21 18:40:46 +01:00
|
|
|
resource 'MBAR' (MBAR_SSHEVEN, preload)
|
2020-08-06 01:59:49 +01:00
|
|
|
{
|
2020-08-13 16:21:05 +01:00
|
|
|
{ MENU_APPLE, MENU_FILE, MENU_EDIT };
|
2020-08-06 01:59:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
resource 'MENU' (MENU_APPLE) {
|
|
|
|
MENU_APPLE, textMenuProc;
|
|
|
|
allEnabled, enabled;
|
|
|
|
apple;
|
|
|
|
{
|
|
|
|
"About ssheven...", noIcon, noKey, noMark, plain;
|
|
|
|
"-", noIcon, noKey, noMark, plain;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'MENU' (MENU_FILE) {
|
|
|
|
MENU_FILE, textMenuProc;
|
|
|
|
allEnabled, enabled;
|
|
|
|
"File";
|
|
|
|
{
|
2020-10-04 17:19:49 +01:00
|
|
|
"Preferences...", noIcon, noKey, noMark, plain;
|
|
|
|
"-", noIcon, noKey, noMark, plain;
|
2020-08-06 01:59:49 +01:00
|
|
|
"Quit", noIcon, "Q", noMark, plain;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:21:05 +01:00
|
|
|
resource 'MENU' (MENU_EDIT) {
|
|
|
|
MENU_EDIT, textMenuProc;
|
|
|
|
allEnabled, enabled;
|
|
|
|
"Edit";
|
|
|
|
{
|
|
|
|
"Undo", noIcon, "Z", noMark, plain;
|
|
|
|
"-", noIcon, noKey, noMark, plain;
|
|
|
|
"Cut", noIcon, "X", noMark, plain;
|
|
|
|
"Copy", noIcon, "C", noMark, plain;
|
|
|
|
"Paste", noIcon, "V", noMark, plain;
|
|
|
|
"Clear", noIcon, noKey, noMark, plain;
|
|
|
|
"Select All", noIcon, "A", noMark, plain;
|
|
|
|
"-", noIcon, noKey, noMark, plain;
|
|
|
|
"Show Clipboard", noIcon, noKey, noMark, plain;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-10-04 17:19:49 +01:00
|
|
|
resource 'MENU' (MENU_COLOR) {
|
|
|
|
MENU_COLOR, textMenuProc;
|
|
|
|
allEnabled, enabled;
|
|
|
|
"Color";
|
|
|
|
{
|
|
|
|
"Black", noIcon, noKey, noMark, plain;
|
|
|
|
"Red", noIcon, noKey, noMark, plain;
|
|
|
|
"Green", noIcon, noKey, noMark, plain;
|
|
|
|
"Yellow", noIcon, noKey, noMark, plain;
|
|
|
|
"Blue", noIcon, noKey, noMark, plain;
|
|
|
|
"Magenta", noIcon, noKey, noMark, plain;
|
|
|
|
"Cyan", noIcon, noKey, noMark, plain;
|
|
|
|
"White", noIcon, noKey, noMark, plain;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'MENU' (MENU_TERM_TYPE) {
|
|
|
|
MENU_TERM_TYPE, textMenuProc;
|
|
|
|
allEnabled, enabled;
|
|
|
|
"Type";
|
|
|
|
{
|
2021-01-23 17:32:17 +00:00
|
|
|
"Monochrome (faster)", noIcon, noKey, noMark, plain;
|
|
|
|
"Color (slower)", noIcon, noKey, noMark, plain;
|
2020-10-04 17:19:49 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DLOG' (DLOG_PREFERENCES) {
|
|
|
|
{ 50, 100, 195, 420 },
|
|
|
|
dBoxProc,
|
|
|
|
visible,
|
|
|
|
noGoAway,
|
|
|
|
0,
|
|
|
|
DITL_PREFERENCES,
|
|
|
|
"",
|
|
|
|
centerMainScreen
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'DITL' (DITL_PREFERENCES) {
|
|
|
|
{
|
|
|
|
{ 115, 230, 135, 310 },
|
|
|
|
Button { enabled, "OK" };
|
|
|
|
|
|
|
|
{ 190-10-20-5, 320-10-80-5, 190-10+5, 320-10+5 }, /* box for border */
|
|
|
|
UserItem { enabled };
|
|
|
|
|
|
|
|
{ 10, 35, 28, 130 },
|
|
|
|
StaticText { enabled, "Terminal type: " };
|
|
|
|
|
|
|
|
{ 40, 10, 58, 130 },
|
|
|
|
StaticText { enabled, "Background color: " };
|
|
|
|
|
|
|
|
{ 70, 12, 88, 132 },
|
|
|
|
StaticText { enabled, "Foreground color: " };
|
|
|
|
|
|
|
|
{ 10, 150, 29, 300 },
|
|
|
|
Control { disabled, CNTL_PREF_TERM_TYPE };
|
|
|
|
|
|
|
|
{ 40, 150, 59, 300 },
|
|
|
|
Control { enabled, CNTL_PREF_BG_COLOR };
|
|
|
|
|
|
|
|
{ 70, 150, 89, 300 },
|
|
|
|
Control { enabled, CNTL_PREF_FG_COLOR };
|
|
|
|
|
|
|
|
{ 115, 10, 135, 90 },
|
|
|
|
Button { enabled, "Cancel" };
|
|
|
|
|
|
|
|
/*
|
|
|
|
{ 115, 105, 135, 170 },
|
|
|
|
Button { enabled, "Reset" };
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'CNTL' (CNTL_PREF_FG_COLOR) {
|
|
|
|
{ 0, 0, 19, 150 },
|
|
|
|
popupTitleLeftJust,
|
|
|
|
visible,
|
|
|
|
0,
|
|
|
|
MENU_COLOR,
|
|
|
|
popupMenuProc,
|
|
|
|
0,
|
|
|
|
""
|
2020-09-20 03:34:07 +01:00
|
|
|
};
|
2020-09-20 03:46:23 +01:00
|
|
|
|
2020-10-04 17:19:49 +01:00
|
|
|
resource 'CNTL' (CNTL_PREF_BG_COLOR) {
|
|
|
|
{ 0, 0, 19, 150 },
|
|
|
|
popupTitleLeftJust,
|
|
|
|
visible,
|
|
|
|
0,
|
|
|
|
MENU_COLOR,
|
|
|
|
popupMenuProc,
|
|
|
|
0,
|
|
|
|
""
|
|
|
|
};
|
|
|
|
|
|
|
|
resource 'CNTL' (CNTL_PREF_TERM_TYPE) {
|
|
|
|
{ 0, 0, 19, 150 },
|
|
|
|
popupTitleLeftJust,
|
|
|
|
visible,
|
|
|
|
0,
|
|
|
|
MENU_TERM_TYPE,
|
|
|
|
popupMenuProc,
|
|
|
|
0,
|
|
|
|
""
|
|
|
|
};
|