VNCviewGS/vncview.rez

992 lines
33 KiB
Plaintext
Raw Normal View History

2015-09-23 23:46:47 +00:00
/*--------------------------------------------------------------*/
/* Main resources for VNCview GS */
/*--------------------------------------------------------------*/
#include "types.rez"
/*- Constants --------------------------------------------------*/
#define appleMenu 1
#define fileMenu 2
#define editMenu 3
#define editUndo 250
#define editCut 251
#define editCopy 252
#define editPaste 253
#define editClear 254
#define editSendClipboard 262
#define editShowClipboard 261
2015-09-23 23:46:47 +00:00
#define fileNewConnection 260
#define fileClose 255
#define fileQuit 256
#define appleAbout 257
#define noKB 100
#define noMarinettiError 2001
#define outOfMemoryError 2002
#define disconnectTCPIPAlert 2003
#define connectionFailedAlert 2004
#define noCryptoError 2005
#define authFailedError 2006
#define authTooManyError 2007
#define badRFBVersionAlert 2008
#define badAuthTypeAlert 2009
#define screenTooBigError 2010
#define noTCPIPConnectionError 2011
#define badGetIpidError 2012
#define badOptionNegotiationError 2013
#define badHandshakingError 2014
#define badReadTCPError 2015
#define linedColors 1
#define NCWindow 1000 /* Offset for "New Connection" */
/* window and its controls */
#define VNCWindow 3000
#define winNewConnection 1
#define btnConnect 1
#define btnCancel 2
#define linServer 3
#define txtServer 4
#define txtServerInfo 5
#define txtPassword 6
#define linPassword 7
#define txtDisplay 8
#define rectDisplay 9
#define txtColor 10
#define txtGray 11
#define rad320 12
#define rad640 13
#define chkShared 16
#define chkClipboard 17
#define txtTransfers 23
#define chkEmul3Btn 18
#define chkViewOnly 19
#define chkTuneMarinetti 20
#define txtPreferredEncoding 24
#define radRaw 25
#define radHextile 26
2015-09-23 23:46:47 +00:00
/*- Tools ------------------------------------------------------*/
resource rToolStartup(1) {
$C087, /* mode640 + fFastPortAware + fUseShadowing + color table 7 */
2015-09-23 23:46:47 +00:00
{
3, $0302, /* Misc Tool */
4, $0307, /* QuickDraw II */
5, $0304, /* Desk Manager */
6, $0301, /* Event Manager */
/* 8, $0303, /* Sound Tools */
11, $0300, /* Integer Math Tool Set */
14, $0303, /* Window Manager */
15, $0303, /* Menu Manager */
16, $0303, /* Control Manager */
18, $0304, /* QuickDraw II Auxiliary */
/* 19, $0301, /* Print Manager */
20, $0303, /* LineEdit Tool Set */
21, $0304, /* Dialog Manager */
22, $0301, /* Scrap Manager */
/* 23, $0303, /* SFO */
/* 25, $0104, /* Note Synthesizer */
27, $0303, /* Font Manager */
28, $0303, /* List Manager */
/* 34, $0103 /* TextEdit Tool Set */
}
};
2015-09-23 23:46:47 +00:00
/*- Menu Bar ---------------------------------------------------*/
resource rMenuBar (1) { /* the menu bar */
{
appleMenu, /* resource numbers for the menus */
fileMenu,
editMenu
};
};
2015-09-23 23:46:47 +00:00
resource rMenu (appleMenu) { /* the Apple menu */
appleMenu, /* menu ID */
refIsResource*menuTitleRefShift /* flags */
+ refIsResource*itemRefShift
+ fAllowCache,
appleMenu, /* menu title resource ID */
{appleAbout}; /* menu item resource IDs */
};
2015-09-23 23:46:47 +00:00
resource rMenu (fileMenu) { /* the File menu */
fileMenu, /* menu ID */
refIsResource*menuTitleRefShift /* flags */
+ refIsResource*itemRefShift
+ fAllowCache,
fileMenu, /* menu title resource ID */
{ /* menu item resource IDs */
fileNewConnection,
fileClose,
fileQuit
};
};
2015-09-23 23:46:47 +00:00
resource rMenu (editMenu) { /* the Edit menu */
editMenu, /* menu ID */
refIsResource*menuTitleRefShift /* flags */
+ refIsResource*itemRefShift
+ fAllowCache,
editMenu, /* menu title resource ID */
{ /* menu item resource IDs */
editUndo,
editCut,
editCopy,
editPaste,
editClear,
editShowClipboard,
editSendClipBoard
};
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editUndo) { /* Undo menu item */
editUndo, /* menu item ID */
"Z","z", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
editUndo /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editCut) { /* Cut menu item */
editCut, /* menu item ID */
"X","x", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editCut /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editCopy) { /* Copy menu item */
editCopy, /* menu item ID */
"C","c", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editCopy /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editPaste) { /* Paste menu item */
editPaste, /* menu item ID */
"V","v", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editPaste /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editClear) { /* Clear menu item */
editClear, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
editClear /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editShowClipboard) {
editShowClipboard,
"","",
0,
refIsResource*itemTitleRefShift,
editShowClipboard
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editSendClipboard) {
editSendClipboard,
"","",
0,
refIsResource*itemTitleRefShift,
editSendClipboard
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileNewConnection) { /* New menu item */
2015-09-23 23:46:47 +00:00
fileNewConnection, /* menu item ID */
"N","n", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
fileNewConnection /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileClose) { /* Close menu item */
fileClose, /* menu item ID */
"W","w", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
2015-09-23 23:46:47 +00:00
fileClose /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileQuit) { /* Quit menu item */
fileQuit, /* menu item ID */
"Q","q", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
fileQuit /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (appleAbout) { /* About menu item */
appleAbout, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
appleAbout /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
/* the various strings */
resource rPString (appleMenu, noCrossBank) {"@"};
resource rPString (fileMenu, noCrossBank) {" File "};
resource rPString (editMenu, noCrossBank) {" Edit "};
resource rPString (editUndo, noCrossBank) {"Undo"};
resource rPString (editCut, noCrossBank) {"Cut"};
resource rPString (editCopy, noCrossBank) {"Copy"};
resource rPString (editPaste, noCrossBank) {"Paste"};
resource rPString (editClear, noCrossBank) {"Clear"};
resource rPString (editShowClipboard, noCrossBank)
{"Show Clipboard"};
2015-09-23 23:46:47 +00:00
resource rPString (editSendClipboard, noCrossBank)
{"Send Clipboard"};
2015-09-23 23:46:47 +00:00
resource rPString (fileNewConnection, noCrossBank)
{"New Connection..."};
2015-09-23 23:46:47 +00:00
resource rPString (fileClose, noCrossBank) {"Close"};
resource rPString (fileQuit, noCrossBank) {"Quit"};
resource rPString (appleAbout, noCrossBank) {"About VNCview GS..."};
/*- Alternative Menu Items without Keyboard Equivalents --------*/
resource rMenuBar (1+noKB) { /* the menu bar */
{
appleMenu, /* resource numbers for the menus */
fileMenu+noKB,
editMenu+noKB
};
};
2015-09-23 23:46:47 +00:00
resource rMenu (fileMenu+noKB) { /* the File menu */
fileMenu, /* menu ID */
refIsResource*menuTitleRefShift /* flags */
+ refIsResource*itemRefShift
+ fAllowCache,
fileMenu, /* menu title resource ID */
{ /* menu item resource IDs */
fileNewConnection+noKB,
fileClose+noKB,
fileQuit+noKB
};
};
2015-09-23 23:46:47 +00:00
resource rMenu (editMenu+noKB) { /* the Edit menu */
editMenu, /* menu ID */
refIsResource*menuTitleRefShift /* flags */
+ refIsResource*itemRefShift
+ fAllowCache,
editMenu, /* menu title resource ID */
{ /* menu item resource IDs */
editUndo+noKB,
editCut+noKB,
editCopy+noKB,
editPaste+noKB,
editClear,
editShowClipboard,
editSendClipBoard
};
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editUndo+noKB) { /* Undo menu item */
editUndo, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
editUndo /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editCut+noKB) { /* Cut menu item */
editCut, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editCut /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editCopy+noKB) { /* Copy menu item */
editCopy, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editCopy /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (editPaste+noKB) { /* Paste menu item */
editPaste, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
editPaste /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileNewConnection+noKB) { /* New menu item */
2015-09-23 23:46:47 +00:00
fileNewConnection, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
fileNewConnection /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileClose+noKB) { /* Close menu item */
fileClose, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift /* flags */
+ fDivider,
2015-09-23 23:46:47 +00:00
fileClose /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
resource rMenuItem (fileQuit+noKB) { /* Quit menu item */
fileQuit, /* menu item ID */
"","", /* key equivalents */
0, /* check character */
refIsResource*itemTitleRefShift, /* flags */
fileQuit /* menu item title resource ID */
};
2015-09-23 23:46:47 +00:00
/*- About Box --------------------------------------------------*/
resource rAlertString (1) {
"93:"
2016-09-25 22:01:10 +00:00
"VNCview GS 1.0.1\n"
2016-09-06 03:58:50 +00:00
"Copyright \$A9 2002\$D12016 by Stephen Heumann\n"
2015-09-23 23:46:47 +00:00
"\n"
"This program contains material from the ORCA/C Run-Time Libraries, "
"Copyright 1987-1996 by Byte Works Inc. Used with permission.\n"
":^#0\$00";
};
2015-09-23 23:46:47 +00:00
/*- Resources used by Finder, etc. -----------------------------*/
resource rVersion (1) {
{
2016-09-25 22:01:10 +00:00
1,0,1, /* Version number */
2016-09-06 03:58:50 +00:00
release, 0, /* Release version */
},
verUS, /* Region code */
"VNCview GS", /* Title */
2016-09-06 03:58:50 +00:00
"Copyright \$A9 2002\$D12016\n"
2015-09-23 23:46:47 +00:00
"by Stephen Heumann"
};
2015-09-23 23:46:47 +00:00
resource rBundle (1, preload, nospecialmemory) {
1, /* Icon ID */
1, /* rBundle ID */
{ /* OneDoc structure to match the program */
{
$81,
2015-09-23 23:46:47 +00:00
{0},
{1},
{2}
},
2015-09-23 23:46:47 +00:00
$00000005,
matchFileType {{$B3}},
empty {},
matchFilename {{"VNCview.GS"}},
empty {},
empty {},
empty {},
empty {},
empty {},
empty {},
empty {},
empty {},
empty {}
}
};
2015-09-23 23:46:47 +00:00
resource rIcon (1, preload, nospecialmemory) {
$8000,
22,
24,
$"000000000000000000000000"
$"0F8EFF00F0FF00F0F0FFFFF0"
2015-09-23 23:46:47 +00:00
$"0F45FF0F000F0F00F0FFFFF0"
$"000000000000000000000000"
$"0F99FF00FFF0F00FFFFFF0F0"
$"0F99FF0F0F00F0FFFFFFF030"
2015-09-23 23:46:47 +00:00
$"0000000000000000000000F0"
$"0999999999999999999990F0"
$"099FFFF000F0F00FFF999030"
$"09FFFFFFFFFFFFFFFFF99030"
2015-09-23 23:46:47 +00:00
$"09F88FFFFF88F1111FF99030"
$"09FF88FFF88FF1FFF1F99030"
$"09FF88FFF88FF1FFF1F99030"
$"09FFF88F88FFFFFFFFF99030"
2015-09-23 23:46:47 +00:00
$"09FFF88F88FFFF4444F99030"
$"09FFFF888FFFF4FFFFF99030"
$"09FFFF888FFFF4FFFFF99030"
$"09FFFFF8FFFFFF4444F99030"
2015-09-23 23:46:47 +00:00
$"09FFFFFFFFFFFFFFFFF990F0"
$"000000000000000000000000"
$"0F3FFFFFF33333333333F0F0"
$"000000000000000000000000",
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
$"FFFFFFFFFFFFFFFFFFFFFFFF"
2015-09-23 23:46:47 +00:00
$"FFFFFFFFFFFFFFFFFFFFFFFF"
};
resource rIcon (2, preload, nospecialmemory) {
0x8000,
8,
8,
$"F8F8F11F"
$"F8F8F1F1"
$"F8F8F1F1"
$"F8F8FFFF"
$"F8F8FF44"
$"F8F8F4FF"
$"FF8FF4FF"
$"FF8FFF44",
$"0F0F0FF0"
$"0F0F0F0F"
$"0F0F0F0F"
$"0F0F0000"
$"0F0F00FF"
$"0F0F0F00"
$"00F00F00"
$"00F000FF"
2015-09-23 23:46:47 +00:00
};
/*- Error handler ----------------------------------------------*/
resource rAlertString (noMarinettiError) {
"42:"
"Could not load the Marinetti TCP/IP stack. Please ensure that "
"you have Marinetti 2.0 or later installed on this computer."
":^#5\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (noCryptoError) {
"42:"
2015-09-23 23:46:47 +00:00
"Could not load the Crypto tool set. Please install the crypto "
"tool set version 1.0 or later to use passwords in VNCview GS."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (outOfMemoryError) {
"42:"
"Could not allocate sufficient memory. Please reduce memory "
"usage and run VNCview GS again."
":^#5\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (disconnectTCPIPAlert) {
"20:"
2015-09-23 23:46:47 +00:00
"Do you want to disconnect your TCP/IP connection?"
":^#3:#2\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (authFailedError) {
"52:"
2015-09-23 23:46:47 +00:00
"Authentication failed. Please re-type your password and try again."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (authTooManyError) {
"72:"
"Authentication has failed too many times. Please check that you are "
2015-09-23 23:46:47 +00:00
"using the correct password and wait a while before connecting again."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (connectionFailedAlert) {
"92;"
2015-09-23 23:46:47 +00:00
"Connection failed:\n"
"*0"
";^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (badRFBVersionAlert) {
"42:"
2015-09-23 23:46:47 +00:00
"The server reported an RFB protocal version incompatible with VNCview "
"GS or is not an RFB server."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (badAuthTypeAlert) {
"42:"
2015-09-23 23:46:47 +00:00
"The connection failed because the server requested an authentication "
"type not recognized by VNCview GS."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (noTCPIPConnectionError) {
"32:"
2015-09-23 23:46:47 +00:00
"A TCP/IP connection could not be established."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (badGetIpidError) {
"42:"
2015-09-23 23:46:47 +00:00
"There was an error while resolving the hostname you provided or "
"preparing to connect to it."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (badOptionNegotiationError) {
"32:"
2015-09-23 23:46:47 +00:00
"There was an error while negotiating protocol options."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (badHandshakingError) {
"32:"
2015-09-23 23:46:47 +00:00
"There was an error while establishing a VNC connection with the server."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
resource rAlertString (screenTooBigError) {
"72:"
2015-09-23 23:46:47 +00:00
"The server's framebuffer resolution is too big for VNCview GS. "
"VNCview GS does not support resolutions greater than 16,384 by 16,384."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
#if 0
resource rAlertString (badReadTCPError) {
"72:"
2015-09-23 23:46:47 +00:00
"The TCP/IP stack did not return the amount of data expected. This "
"may be indicative of a bug in Marinetti or in the VNC server software."
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
#endif
resource rAlertString (10000) {
"72:"
2015-09-23 23:46:47 +00:00
"*0"
":^#6\$00";
};
2015-09-23 23:46:47 +00:00
/*- New VNC Connection window resources ----------------------------------*/
resource rWindParam1 (NCWindow+winNewConnection) {
fTitle+fClose+fFlex+fMove, /* 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 */
{35,162,189,478}, /* wPosition */
infront, /* wPlane */
NCWindow+winNewConnection, /* wStorage */
$0009 /* wInVerb */
};
2015-09-23 23:46:47 +00:00
resource rControlList (NCWindow+winNewConnection) {{
NCWindow+btnConnect,
2015-09-23 23:46:47 +00:00
NCWindow+btnCancel,
NCWindow+linServer,
2015-09-23 23:46:47 +00:00
NCWindow+txtServer,
NCWindow+txtServerInfo,
NCWindow+txtPassword,
NCWindow+linPassword,
NCWindow+txtDisplay,
NCWindow+rectDisplay,
NCWindow+rad320,
NCWindow+txtColor,
NCWindow+rad640,
NCWindow+txtGray,
NCWindow+chkShared,
NCWindow+chkClipboard,
NCWindow+txtTransfers,
NCWindow+chkEmul3Btn,
NCWindow+chkViewOnly,
NCWindow+chkTuneMarinetti,
2015-09-23 23:56:37 +00:00
NCWindow+txtPreferredEncoding,
NCWindow+radRaw,
NCWindow+radHextile,
}};
2015-09-23 23:46:47 +00:00
resource rControlTemplate (NCWindow+btnConnect) {
btnConnect, /* Control ID */
{134,217,0,0}, /* Control Rect */
2015-09-23 23:46:47 +00:00
SimpleButtonControl {{
$0001, /* flags */
$3002, /* more flags */
0, /* refcon */
NCWindow+btnConnect, /* Title Ref */
nil, /* color table ref */
{"\$0D","\$0D",0,0} /* key equivalents (esc) */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+btnConnect) {"Connect"};
resource rControlTemplate (NCWindow+btnCancel) {
btnCancel, /* Control ID */
{134,128,0,0}, /* Control Rect */
2015-09-23 23:46:47 +00:00
SimpleButtonControl {{
$0000, /* flags */
$3002, /* more flags */
0, /* refcon */
NCWindow+btnCancel, /* Title Ref */
nil, /* color table ref */
{"\$1B","\$1B",0,0} /* key equivalents (esc) */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+btnCancel) {"Cancel"};
resource rControlTemplate (NCWindow+linServer) {
linServer,
2015-09-23 23:46:47 +00:00
{4,87,16,310},
editLineControl {{
$0000,
2015-09-23 23:46:47 +00:00
$7000,
0,
2015-09-23 23:46:47 +00:00
255, /* Max Size */
0 /* text ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rControlTemplate (NCWindow+txtServer) {
txtServer,
{5,3,15,86},
2015-09-23 23:46:47 +00:00
statTextControl {{
$0004,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtServer /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtServer) {"VNC Server:"};
resource rControlTemplate (NCWindow+txtServerInfo) {
txtServerInfo,
{16,0,26,316},
2015-09-23 23:46:47 +00:00
statTextControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtServerInfo /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtServerInfo) {
"\$01J\$01\$00Use \$01S\$03\$00host:display\$01S\$00\$00 "
2015-09-23 23:46:47 +00:00
"(or \$01S\$03\$00host\$01S\$00\$00 for display 0)."
};
2015-09-23 23:46:47 +00:00
resource rControlTemplate (NCWindow+txtPassword) {
txtPassword,
{29,15,38,86},
2015-09-23 23:46:47 +00:00
statTextControl {{
$0004,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtPassword /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtPassword) {"Password:"};
resource rControlTemplate (NCWindow+linPassword) {
linPassword,
2015-09-23 23:46:47 +00:00
{28,87,39,310},
editLineControl {{
$0000,
2015-09-23 23:46:47 +00:00
$7000,
0,
8, /* Max Size */
2015-09-23 23:46:47 +00:00
0, /* text ref */
$D7 /* password character */
}};
};
2015-09-23 23:46:47 +00:00
resource rControlTemplate (NCWindow+txtDisplay) {
txtDisplay,
{43,13,52,73},
2015-09-23 23:46:47 +00:00
statTextControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtDisplay /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtDisplay) {" Display "};
resource rControlTemplate (NCWindow+rectDisplay) {
NCWindow+rectDisplay,
{47,3,100,111},
2015-09-23 23:46:47 +00:00
rectangleControl {{
$FF01,
2015-09-23 23:46:47 +00:00
$1000,
0
}};
};
2015-09-23 23:46:47 +00:00
resource rControlTemplate (NCWindow+rad320) {
rad320,
{55,10,0,0},
2015-09-23 23:46:47 +00:00
RadioControl {{
$0002,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+rad320, /* Title ref */
1 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+rad320) {"320 x 200"};
resource rControlTemplate (NCWindow+txtColor) {
txtColor,
{64,35,73,90},
2015-09-23 23:46:47 +00:00
statTextControl {{
$000C,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtColor /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtColor) {"Color"};
resource rControlTemplate (NCWindow+rad640) {
rad640,
{78,10,0,0},
2015-09-23 23:46:47 +00:00
RadioControl {{
$0002,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+rad640, /* Title ref */
0 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+rad640) {"640 x 200"};
resource rControlTemplate (NCWindow+txtGray) {
txtGray,
{87,35,96,109},
2015-09-23 23:46:47 +00:00
statTextControl {{
$000C,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtGray /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtGray) {"Grayscale"};
resource rControlTemplate (NCWindow+chkShared) {
chkShared,
{43,117,0,0},
2015-09-23 23:46:47 +00:00
CheckControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+chkShared, /* Title ref */
1 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+chkShared) {"Request Shared Session"};
resource rControlTemplate (NCWindow+chkClipboard) {
chkClipboard,
{82,117,0,0},
2015-09-23 23:46:47 +00:00
CheckControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+chkClipboard, /* Title ref */
1 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+chkClipboard) {"Allow Clipboard"};
resource rControlTemplate (NCWindow+txtTransfers) {
txtTransfers,
{91,144,100,310},
2015-09-23 23:46:47 +00:00
statTextControl {{
$000C,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+txtTransfers /* Title ref */
}};
};
2015-09-23 23:46:47 +00:00
resource rTextForLETextBox2 (NCWindow+txtTransfers) {"Transfers from Server"};
resource rControlTemplate (NCWindow+chkEmul3Btn) {
chkEmul3Btn,
{56,117,0,0},
2015-09-23 23:46:47 +00:00
CheckControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+chkEmul3Btn, /* Title ref */
1 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+chkEmul3Btn) {"Emulate 3-Button Mouse"};
resource rControlTemplate (NCWindow+chkViewOnly) {
chkViewOnly,
{69,117,0,0},
2015-09-23 23:46:47 +00:00
CheckControl {{
$0000,
2015-09-23 23:46:47 +00:00
$1002,
0,
NCWindow+chkViewOnly, /* Title ref */
0 /* initial value */
}};
};
2015-09-23 23:46:47 +00:00
resource rPString (NCWindow+chkViewOnly) {"View Only Mode"};
2015-09-23 23:56:37 +00:00
resource rControlTemplate (NCWindow+txtPreferredEncoding) {
txtPreferredEncoding,
{104,3,91,310},
2015-09-23 23:56:37 +00:00
statTextControl {{
$0004,
2015-09-23 23:56:37 +00:00
$1002,
0,
NCWindow+txtPreferredEncoding /* Title ref */
}};
};
2015-09-23 23:56:37 +00:00
resource rTextForLETextBox2 (NCWindow+txtPreferredEncoding) {"Preferred Encoding:"};
resource rControlTemplate (NCWindow+chkTuneMarinetti) {
chkTuneMarinetti,
{117,3,0,0},
CheckControl {{
$0000,
$1002,
0,
NCWindow+chkTuneMarinetti, /* Title ref */
1 /* initial value */
}};
};
resource rPString (NCWindow+chkTuneMarinetti) {"Tune Marinetti for high throughput"};
2015-09-23 23:56:37 +00:00
resource rControlTemplate (NCWindow+radRaw) {
radRaw,
{104,155,0,0},
2015-09-23 23:56:37 +00:00
RadioControl {{
$0003,
2015-09-23 23:56:37 +00:00
$1002,
0,
NCWindow+radRaw, /* Title ref */
1 /* initial value */
}};
};
2015-09-23 23:56:37 +00:00
resource rPString (NCWindow+radRaw) {"Raw"};
resource rControlTemplate (NCWindow+radHextile) {
radHextile,
{104,220,0,0},
2015-09-23 23:56:37 +00:00
RadioControl {{
$0003,
2015-09-23 23:56:37 +00:00
$1002,
0,
NCWindow+radHextile, /* Title ref */
0 /* initial value */
}};
};
2015-09-23 23:56:37 +00:00
resource rPString (NCWindow+radHextile) {"Hextile"};
2015-09-23 23:46:47 +00:00
/*- TCP/IP Connection Status window resources ----------------------*/
resource rWindParam1 (1002) {
fVis + fAlert, /* 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 */
{85,169,115,471}, /* wPosition */
infront, /* wPlane */
nil, /* wStorage */
$0000 /* wInVerb */
};
2015-09-23 23:46:47 +00:00
resource rPString(10002) {"Press \$11. to cancel."};
/*- VNC Session Window Resources -----------------------------------------*/
/* 640 mode */
resource rWindParam1 (1003) {
fRScroll + fBScroll + fVis + fCtlTie + fGrow, /* wFrameBits */
nil, /* wTitle */
0, /* wRefCon */
{0,0,0,0}, /* ZoomRect */
1, /* wColor ID */
{0,0}, /* Origin */
{0,0}, /* data size */
{0,0}, /* max height-width */
{8,8}, /* scroll vertical, horizontal */
{0,608}, /* page vertical, horizontal */
0, /* wInfoRefCon */
0, /* wInfoHeight */
{13,1,187,614}, /* wPosition */
infront, /* wPlane */
nil, /* wStorage */
$0800 /* wInVerb */
};
2015-09-23 23:46:47 +00:00
/* 320 mode */
resource rWindParam1 (1004) {
fRScroll + fBScroll + fVis + fCtlTie + fGrow, /* wFrameBits */
nil, /* wTitle */
0, /* wRefCon */
{0,0,0,0}, /* ZoomRect */
1, /* wColor ID */
{0,0}, /* Origin */
{0,0}, /* data size */
{0,0}, /* max height-width */
{8,8}, /* scroll vertical, horizontal */
{0,0}, /* page vertical, horizontal */
0, /* wInfoRefCon */
0, /* wInfoHeight */
{13,1,187,303}, /* wPosition */
infront, /* wPlane */
nil, /* wStorage */
$0800 /* wInVerb */
};
2015-09-23 23:46:47 +00:00
resource rWindColor (1) {
0x0000,
2015-09-23 23:46:47 +00:00
0x0FA0,
0x020F,
0xF0AA,
0x00F0
};