mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2025-01-15 22:29:45 +00:00
Switch to standard indentation of closing braces
This commit is contained in:
parent
ab3210adb0
commit
ebf5297779
@ -65,7 +65,7 @@ void DoServerCutText (void) {
|
|||||||
/* Potential errors (e.g. out of memory) ignored */
|
/* Potential errors (e.g. out of memory) ignored */
|
||||||
HUnlock(readBufferHndl);
|
HUnlock(readBufferHndl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoSendClipboard (void) {
|
void DoSendClipboard (void) {
|
||||||
static struct clientCutText {
|
static struct clientCutText {
|
||||||
@ -113,5 +113,5 @@ void DoSendClipboard (void) {
|
|||||||
end:
|
end:
|
||||||
DisposeHandle(scrapHandle);
|
DisposeHandle(scrapHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,5 +71,5 @@ void DoCopyRect (void) {
|
|||||||
displayInProgress = FALSE;
|
displayInProgress = FALSE;
|
||||||
|
|
||||||
NextRect(); /* Prepare for next rect */
|
NextRect(); /* Prepare for next rect */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,5 +80,5 @@ void DoDesktopSize (void) {
|
|||||||
displayInProgress = FALSE;
|
displayInProgress = FALSE;
|
||||||
|
|
||||||
NextRect(); /* Prepare for next rect */
|
NextRect(); /* Prepare for next rect */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
hextile.cc
10
hextile.cc
@ -65,7 +65,7 @@ void HexNextTile (void) {
|
|||||||
hexTileHeight = (hexYTileNum == hexYTiles - 1) ?
|
hexTileHeight = (hexYTileNum == hexYTiles - 1) ?
|
||||||
rectHeight - 16 * (hexYTiles - 1) : 16;
|
rectHeight - 16 * (hexYTiles - 1) : 16;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HexRawDraw (Point *contentOriginPtr, int rectWidth, int rectHeight) {
|
void HexRawDraw (Point *contentOriginPtr, int rectWidth, int rectHeight) {
|
||||||
unsigned int i, j; /* Loop indices */
|
unsigned int i, j; /* Loop indices */
|
||||||
@ -173,7 +173,7 @@ void HexRawDraw (Point *contentOriginPtr, int rectWidth, int rectHeight) {
|
|||||||
status = hexWaitingForSubencoding; \
|
status = hexWaitingForSubencoding; \
|
||||||
bytesNeeded = 1; \
|
bytesNeeded = 1; \
|
||||||
return; \
|
return; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define HexDispatch_DrawRect(color, X, Y, width, height) do { \
|
#define HexDispatch_DrawRect(color, X, Y, width, height) do { \
|
||||||
SetSolidPenPat((color)); \
|
SetSolidPenPat((color)); \
|
||||||
@ -182,7 +182,7 @@ void HexRawDraw (Point *contentOriginPtr, int rectWidth, int rectHeight) {
|
|||||||
drawingRect.h2 = rectX + hexXTileNum * 16 + (X) + (width) - contentOriginPtr->h; \
|
drawingRect.h2 = rectX + hexXTileNum * 16 + (X) + (width) - contentOriginPtr->h; \
|
||||||
drawingRect.v2 = rectY + hexYTileNum * 16 + (Y) + (height) - contentOriginPtr->v; \
|
drawingRect.v2 = rectY + hexYTileNum * 16 + (Y) + (height) - contentOriginPtr->v; \
|
||||||
PaintRect(&drawingRect); \
|
PaintRect(&drawingRect); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define HexDispatch_DrawBackground() \
|
#define HexDispatch_DrawBackground() \
|
||||||
HexDispatch_DrawRect(hexBackground, 0, 0, hexTileWidth, hexTileHeight)
|
HexDispatch_DrawRect(hexBackground, 0, 0, hexTileWidth, hexTileHeight)
|
||||||
@ -278,7 +278,7 @@ void HexDispatch (void) {
|
|||||||
}
|
}
|
||||||
HUnlock(readBufferHndl);
|
HUnlock(readBufferHndl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called when we initially get a Hextile rect; set up to process it */
|
/* Called when we initially get a Hextile rect; set up to process it */
|
||||||
void DoHextileRect (void) {
|
void DoHextileRect (void) {
|
||||||
@ -298,4 +298,4 @@ void DoHextileRect (void) {
|
|||||||
/* Set up for Hextile drawing */
|
/* Set up for Hextile drawing */
|
||||||
srcRect.v1 = 0;
|
srcRect.v1 = 0;
|
||||||
srcRect.h1 = 0;
|
srcRect.h1 = 0;
|
||||||
}
|
}
|
||||||
|
8
mouse.cc
8
mouse.cc
@ -95,7 +95,7 @@ void DoPointerEvent (void) {
|
|||||||
/* If no modifiers, just send a normal left click. */
|
/* If no modifiers, just send a normal left click. */
|
||||||
if (pointerEventStruct.buttonMask == 0x00)
|
if (pointerEventStruct.buttonMask == 0x00)
|
||||||
pointerEventStruct.buttonMask = 0x01;
|
pointerEventStruct.buttonMask = 0x01;
|
||||||
}
|
}
|
||||||
if ((myEvent.modifiers & btn1State) == 0x00) /* If 2nd (right) */
|
if ((myEvent.modifiers & btn1State) == 0x00) /* If 2nd (right) */
|
||||||
pointerEventStruct.buttonMask |= 0x04; /* button is pressed */
|
pointerEventStruct.buttonMask |= 0x04; /* button is pressed */
|
||||||
|
|
||||||
@ -309,13 +309,13 @@ void DoCursor (void) {
|
|||||||
// fprintf(foo, "%02X", *(bitmask + j));
|
// fprintf(foo, "%02X", *(bitmask + j));
|
||||||
// if ((j+1) % bitmaskLineBytes == 0)
|
// if ((j+1) % bitmaskLineBytes == 0)
|
||||||
// fprintf(foo, "\n");
|
// fprintf(foo, "\n");
|
||||||
// }
|
//}
|
||||||
fprintf(foo, "\n");
|
fprintf(foo, "\n");
|
||||||
fclose(foo);
|
fclose(foo);
|
||||||
}
|
}
|
||||||
/***************/
|
/***************/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
displayInProgress = FALSE;
|
displayInProgress = FALSE;
|
||||||
NextRect(); /* Prepare for next rect */
|
NextRect(); /* Prepare for next rect */
|
||||||
}
|
}
|
||||||
|
4
raw.cc
4
raw.cc
@ -314,7 +314,7 @@ void RawDrawLine (void) {
|
|||||||
|
|
||||||
rectHeight--; /* One less line left to draw */
|
rectHeight--; /* One less line left to draw */
|
||||||
rectY++; /* Rest of rect starts one line below this */
|
rectY++; /* Rest of rect starts one line below this */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Process rectangle data in raw encoding and write it to screen.
|
/* Process rectangle data in raw encoding and write it to screen.
|
||||||
*/
|
*/
|
||||||
@ -393,4 +393,4 @@ void DoRawRect (void) {
|
|||||||
drawingLine = 0; /* Drawing first line of rect */
|
drawingLine = 0; /* Drawing first line of rect */
|
||||||
checkBounds = TRUE; /* Flag to check bounds when drawing 1st line */
|
checkBounds = TRUE; /* Flag to check bounds when drawing 1st line */
|
||||||
HLock(readBufferHndl); /* Lock handle just once for efficiency */
|
HLock(readBufferHndl); /* Lock handle just once for efficiency */
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ void VNCRedraw (void) {
|
|||||||
(**updateRgnHndl).rgnBBox.v2 - (**updateRgnHndl).rgnBBox.v1);
|
(**updateRgnHndl).rgnBBox.v2 - (**updateRgnHndl).rgnBBox.v1);
|
||||||
|
|
||||||
checkBounds = TRUE;
|
checkBounds = TRUE;
|
||||||
}
|
}
|
||||||
#pragma databank 0
|
#pragma databank 0
|
||||||
|
|
||||||
/* Change Super Hi-Res display to the specified resolution (640 or 320).
|
/* Change Super Hi-Res display to the specified resolution (640 or 320).
|
||||||
@ -143,7 +143,7 @@ void ChangeResolution(int rez) {
|
|||||||
MoveControl(144, 91, GetCtlHandleFromID(newConnWindow, txtTransfers));
|
MoveControl(144, 91, GetCtlHandleFromID(newConnWindow, txtTransfers));
|
||||||
MoveWindow(162, 42, newConnWindow);
|
MoveWindow(162, 42, newConnWindow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display the VNC session window, first changing to the appropriate
|
/* Display the VNC session window, first changing to the appropriate
|
||||||
* resolution (as specified by the user) if necessary.
|
* resolution (as specified by the user) if necessary.
|
||||||
@ -182,7 +182,7 @@ void InitVNCWindow(void) {
|
|||||||
|
|
||||||
#undef wrNum320
|
#undef wrNum320
|
||||||
#undef wrNum640
|
#undef wrNum640
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send a request to the VNC server to update the information for a portion of
|
/* Send a request to the VNC server to update the information for a portion of
|
||||||
* the frame buffer.
|
* the frame buffer.
|
||||||
@ -208,7 +208,7 @@ void SendFBUpdateRequest (BOOLEAN incremental, unsigned int x, unsigned int y,
|
|||||||
TCPIPWriteTCP(hostIpid, &fbUpdateRequest.messageType,
|
TCPIPWriteTCP(hostIpid, &fbUpdateRequest.messageType,
|
||||||
sizeof(fbUpdateRequest), TRUE, FALSE);
|
sizeof(fbUpdateRequest), TRUE, FALSE);
|
||||||
/* No error checking here -- Can't respond to one usefully. */
|
/* No error checking here -- Can't respond to one usefully. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Start responding to a FramebufferUpdate from the server
|
/* Start responding to a FramebufferUpdate from the server
|
||||||
@ -230,7 +230,7 @@ void DoFBUpdate (void) {
|
|||||||
rectHeight = SwapBytes2(dataPtr[4]);
|
rectHeight = SwapBytes2(dataPtr[4]);
|
||||||
rectEncoding = SwapBytes4(*(unsigned long *)(dataPtr + 5));
|
rectEncoding = SwapBytes4(*(unsigned long *)(dataPtr + 5));
|
||||||
HUnlock(readBufferHndl);
|
HUnlock(readBufferHndl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The server should never send a color map, since we don't use a mapped
|
/* The server should never send a color map, since we don't use a mapped
|
||||||
* representation for pixel values. If a malfunctioning server tries to
|
* representation for pixel values. If a malfunctioning server tries to
|
||||||
@ -250,7 +250,7 @@ void DoSetColourMapEntries (void) {
|
|||||||
for (; numColors > 0; numColors--) {
|
for (; numColors > 0; numColors--) {
|
||||||
DoWaitingReadTCP(6);
|
DoWaitingReadTCP(6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Here when we're done processing one rectangle and ready to start the next.
|
/* Here when we're done processing one rectangle and ready to start the next.
|
||||||
@ -285,7 +285,7 @@ void NextRect (void) {
|
|||||||
SendFBUpdateRequest(TRUE, contentOriginPtr->h, contentOriginPtr->v,
|
SendFBUpdateRequest(TRUE, contentOriginPtr->h, contentOriginPtr->v,
|
||||||
winWidth, winHeight);
|
winWidth, winHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectedEventLoop (void) {
|
void ConnectedEventLoop (void) {
|
||||||
unsigned char messageType;
|
unsigned char messageType;
|
||||||
@ -353,6 +353,6 @@ void ConnectedEventLoop (void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ void DoConnect (void) {
|
|||||||
myEvent.wmTaskMask = 0x001D79FE; /* don't let TaskMaster process keys */
|
myEvent.wmTaskMask = 0x001D79FE; /* don't let TaskMaster process keys */
|
||||||
InitMenus(noKB);
|
InitMenus(noKB);
|
||||||
vncConnected = TRUE;
|
vncConnected = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
* DisplayConnectStatus - Display modal dialog with status information
|
* DisplayConnectStatus - Display modal dialog with status information
|
||||||
@ -171,7 +171,7 @@ void DisplayConnectStatus(char *statusString, BOOLEAN cancelMessage) {
|
|||||||
|
|
||||||
#undef wrNum
|
#undef wrNum
|
||||||
#undef cancelStr
|
#undef cancelStr
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* DisplayConnectStatusFromTool - Can be passed to Marinetti
|
* DisplayConnectStatusFromTool - Can be passed to Marinetti
|
||||||
@ -180,7 +180,7 @@ void DisplayConnectStatus(char *statusString, BOOLEAN cancelMessage) {
|
|||||||
#pragma toolparms 1 /* Use tool-style stack model */
|
#pragma toolparms 1 /* Use tool-style stack model */
|
||||||
void DisplayConnectStatusFromTool (char *statusString) {
|
void DisplayConnectStatusFromTool (char *statusString) {
|
||||||
DisplayConnectStatus(statusString, TRUE);
|
DisplayConnectStatus(statusString, TRUE);
|
||||||
}
|
}
|
||||||
#pragma toolparms 0 /* Use ORCA stack model */
|
#pragma toolparms 0 /* Use ORCA stack model */
|
||||||
#pragma databank 0 /* Must restore data bank register on exit */
|
#pragma databank 0 /* Must restore data bank register on exit */
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ void CloseConnectStatusWindow (void) {
|
|||||||
CloseWindow(connectStatusWindowPtr);
|
CloseWindow(connectStatusWindowPtr);
|
||||||
connectStatusWindowPtr = NULL;
|
connectStatusWindowPtr = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* ConnectTCPIP - Try to establish a TCP/IP connection through Marinetti
|
* ConnectTCPIP - Try to establish a TCP/IP connection through Marinetti
|
||||||
@ -281,7 +281,7 @@ BOOLEAN GetIpid (void)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#undef baseDisplayNum
|
#undef baseDisplayNum
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Read data, waiting for up to 15 seconds for the data to be ready */
|
/* Read data, waiting for up to 15 seconds for the data to be ready */
|
||||||
@ -295,7 +295,7 @@ BOOLEAN DoWaitingReadTCP(unsigned long dataLength) {
|
|||||||
} while (result == FALSE && TickCount() < stopTime);
|
} while (result == FALSE && TickCount() < stopTime);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Fix things when TCPIPReadTCP returns less data than it's supposed to */
|
/* Fix things when TCPIPReadTCP returns less data than it's supposed to */
|
||||||
@ -325,7 +325,7 @@ BOOLEAN ReadFixup (unsigned long requested, unsigned long returned) {
|
|||||||
} while (returned < requested);
|
} while (returned < requested);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* DoReadTCP() - Issue TCPIPReadTCP() call w/ appropriate parameters
|
* DoReadTCP() - Issue TCPIPReadTCP() call w/ appropriate parameters
|
||||||
@ -355,7 +355,7 @@ BOOLEAN DoReadTCP (unsigned long dataLength) {
|
|||||||
return ReadFixup(dataLength, theRRBuff.rrBuffCount);
|
return ReadFixup(dataLength, theRRBuff.rrBuffCount);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
@ -446,7 +446,7 @@ BOOLEAN DoVNCHandshaking (void) {
|
|||||||
#undef connectionFailedAlert
|
#undef connectionFailedAlert
|
||||||
#undef badRFBVersionAlert
|
#undef badRFBVersionAlert
|
||||||
#undef badAuthTypeAlert
|
#undef badAuthTypeAlert
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* DoDES() - Try to do DES (aka VNC) authentication
|
* DoDES() - Try to do DES (aka VNC) authentication
|
||||||
@ -586,7 +586,7 @@ BOOLEAN DoDES (void) {
|
|||||||
#undef statusFailed
|
#undef statusFailed
|
||||||
#undef statusTooMany
|
#undef statusTooMany
|
||||||
#undef SwitchBits
|
#undef SwitchBits
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* FinishVNCHandshaking() - Complete VNC protocol initialization
|
* FinishVNCHandshaking() - Complete VNC protocol initialization
|
||||||
@ -709,7 +709,7 @@ BOOLEAN FinishVNCHandshaking (void) {
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#undef screenTooBigError
|
#undef screenTooBigError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
@ -725,4 +725,4 @@ void CloseTCPConnection (void) {
|
|||||||
} while (toolerror() == terrSOCKETOPEN);
|
} while (toolerror() == terrSOCKETOPEN);
|
||||||
CloseConnectStatusWindow();
|
CloseConnectStatusWindow();
|
||||||
InitCursor();
|
InitCursor();
|
||||||
}
|
}
|
||||||
|
24
vncview.cc
24
vncview.cc
@ -97,7 +97,7 @@ char vncPassword[10];
|
|||||||
void DrawContents (void) {
|
void DrawContents (void) {
|
||||||
PenNormal(); /* use a "normal" pen */
|
PenNormal(); /* use a "normal" pen */
|
||||||
DrawControls(GetPort()); /* draw controls in window */
|
DrawControls(GetPort()); /* draw controls in window */
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma databank 0
|
#pragma databank 0
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ void DoAbout (void) {
|
|||||||
AlertWindow(awCString+awResource, NULL, alertID);
|
AlertWindow(awCString+awResource, NULL, alertID);
|
||||||
|
|
||||||
#undef alertID
|
#undef alertID
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* DoNewConnection - Show the New Connection window
|
* DoNewConnection - Show the New Connection window
|
||||||
@ -124,7 +124,7 @@ void DoNewConnection (void) {
|
|||||||
MakeThisCtlTarget(GetCtlHandleFromID(newConnWindow, linServer));
|
MakeThisCtlTarget(GetCtlHandleFromID(newConnWindow, linServer));
|
||||||
ShowWindow(newConnWindow);
|
ShowWindow(newConnWindow);
|
||||||
SelectWindow(newConnWindow);
|
SelectWindow(newConnWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* DoClose - Close the frontmost window/connection
|
* DoClose - Close the frontmost window/connection
|
||||||
@ -148,7 +148,7 @@ void DoClose (GrafPortPtr wPtr) {
|
|||||||
free(cursor);
|
free(cursor);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* DoLEEdit - Handle edit menu items for LineEdit controls
|
* DoLEEdit - Handle edit menu items for LineEdit controls
|
||||||
@ -185,7 +185,7 @@ void DoLEEdit (int editAction) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
SetPort(port);
|
SetPort(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* HandleMenu - Initialize the menu bar.
|
* HandleMenu - Initialize the menu bar.
|
||||||
@ -211,7 +211,7 @@ void HandleMenu (void) {
|
|||||||
case editSendClipboard: DoSendClipboard(); break;
|
case editSendClipboard: DoSendClipboard(); break;
|
||||||
}
|
}
|
||||||
HiliteMenu(FALSE, menuNum); /* unhighlight the menu */
|
HiliteMenu(FALSE, menuNum); /* unhighlight the menu */
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* HandleControl - Handle a control press in the New Conn. window
|
* HandleControl - Handle a control press in the New Conn. window
|
||||||
@ -241,7 +241,7 @@ void HandleControl (void) {
|
|||||||
case radRaw: useHextile = FALSE; break;
|
case radRaw: useHextile = FALSE; break;
|
||||||
case radHextile: useHextile = TRUE; break;
|
case radHextile: useHextile = TRUE; break;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* InitMenus - Initialize the menu bar.
|
* InitMenus - Initialize the menu bar.
|
||||||
@ -267,7 +267,7 @@ void InitMenus (int offset) {
|
|||||||
menuOffset = offset; /* So we can tell which menu is active */
|
menuOffset = offset; /* So we can tell which menu is active */
|
||||||
|
|
||||||
#undef menuID
|
#undef menuID
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* CheckMenus - Check the menus to see if they should be dimmed
|
* CheckMenus - Check the menus to see if they should be dimmed
|
||||||
@ -330,7 +330,7 @@ void CheckMenus (void) {
|
|||||||
else {
|
else {
|
||||||
DisableMItem(editSendClipboard);
|
DisableMItem(editSendClipboard);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* InitScreen - Set up color tables and SCBs to appropriate values
|
/* InitScreen - Set up color tables and SCBs to appropriate values
|
||||||
*/
|
*/
|
||||||
@ -344,7 +344,7 @@ void InitScreen (void) {
|
|||||||
SetColorTable(7, &gray640Colors);
|
SetColorTable(7, &gray640Colors);
|
||||||
SetAllSCBs(0x87); /* 640 mode with gray640Colors */
|
SetAllSCBs(0x87); /* 640 mode with gray640Colors */
|
||||||
InitPalette(); /* Restore Apple Menu colors */
|
InitPalette(); /* Restore Apple Menu colors */
|
||||||
}
|
}
|
||||||
|
|
||||||
void Quit (void) {
|
void Quit (void) {
|
||||||
/* Done with event loop - now quitting */
|
/* Done with event loop - now quitting */
|
||||||
@ -383,7 +383,7 @@ void Quit (void) {
|
|||||||
UnloadOneTool(54);
|
UnloadOneTool(54);
|
||||||
ShutDownTools(1, startStopParm); /* shut down the tools */
|
ShutDownTools(1, startStopParm); /* shut down the tools */
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* Main - Initial startup function
|
* Main - Initial startup function
|
||||||
@ -473,4 +473,4 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Quit();
|
Quit();
|
||||||
}
|
}
|
||||||
|
146
vncview.rez
146
vncview.rez
@ -95,7 +95,7 @@ resource rToolStartup(1) {
|
|||||||
28, $0303, /* List Manager */
|
28, $0303, /* List Manager */
|
||||||
/* 34, $0103 /* TextEdit Tool Set */
|
/* 34, $0103 /* TextEdit Tool Set */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*- Menu Bar ---------------------------------------------------*/
|
/*- Menu Bar ---------------------------------------------------*/
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ resource rMenuBar (1) { /* the menu bar */
|
|||||||
fileMenu,
|
fileMenu,
|
||||||
editMenu
|
editMenu
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenu (appleMenu) { /* the Apple menu */
|
resource rMenu (appleMenu) { /* the Apple menu */
|
||||||
appleMenu, /* menu ID */
|
appleMenu, /* menu ID */
|
||||||
@ -114,7 +114,7 @@ resource rMenu (appleMenu) { /* the Apple menu */
|
|||||||
+ fAllowCache,
|
+ fAllowCache,
|
||||||
appleMenu, /* menu title resource ID */
|
appleMenu, /* menu title resource ID */
|
||||||
{appleAbout}; /* menu item resource IDs */
|
{appleAbout}; /* menu item resource IDs */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenu (fileMenu) { /* the File menu */
|
resource rMenu (fileMenu) { /* the File menu */
|
||||||
fileMenu, /* menu ID */
|
fileMenu, /* menu ID */
|
||||||
@ -127,7 +127,7 @@ resource rMenu (fileMenu) { /* the File menu */
|
|||||||
fileClose,
|
fileClose,
|
||||||
fileQuit
|
fileQuit
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenu (editMenu) { /* the Edit menu */
|
resource rMenu (editMenu) { /* the Edit menu */
|
||||||
editMenu, /* menu ID */
|
editMenu, /* menu ID */
|
||||||
@ -144,7 +144,7 @@ resource rMenu (editMenu) { /* the Edit menu */
|
|||||||
editShowClipboard,
|
editShowClipboard,
|
||||||
editSendClipBoard
|
editSendClipBoard
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editUndo) { /* Undo menu item */
|
resource rMenuItem (editUndo) { /* Undo menu item */
|
||||||
editUndo, /* menu item ID */
|
editUndo, /* menu item ID */
|
||||||
@ -153,7 +153,7 @@ resource rMenuItem (editUndo) { /* Undo menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
editUndo /* menu item title resource ID */
|
editUndo /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editCut) { /* Cut menu item */
|
resource rMenuItem (editCut) { /* Cut menu item */
|
||||||
editCut, /* menu item ID */
|
editCut, /* menu item ID */
|
||||||
@ -161,7 +161,7 @@ resource rMenuItem (editCut) { /* Cut menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editCut /* menu item title resource ID */
|
editCut /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editCopy) { /* Copy menu item */
|
resource rMenuItem (editCopy) { /* Copy menu item */
|
||||||
editCopy, /* menu item ID */
|
editCopy, /* menu item ID */
|
||||||
@ -169,7 +169,7 @@ resource rMenuItem (editCopy) { /* Copy menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editCopy /* menu item title resource ID */
|
editCopy /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editPaste) { /* Paste menu item */
|
resource rMenuItem (editPaste) { /* Paste menu item */
|
||||||
editPaste, /* menu item ID */
|
editPaste, /* menu item ID */
|
||||||
@ -177,7 +177,7 @@ resource rMenuItem (editPaste) { /* Paste menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editPaste /* menu item title resource ID */
|
editPaste /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editClear) { /* Clear menu item */
|
resource rMenuItem (editClear) { /* Clear menu item */
|
||||||
editClear, /* menu item ID */
|
editClear, /* menu item ID */
|
||||||
@ -186,7 +186,7 @@ resource rMenuItem (editClear) { /* Clear menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
editClear /* menu item title resource ID */
|
editClear /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editShowClipboard) {
|
resource rMenuItem (editShowClipboard) {
|
||||||
editShowClipboard,
|
editShowClipboard,
|
||||||
@ -194,7 +194,7 @@ resource rMenuItem (editShowClipboard) {
|
|||||||
0,
|
0,
|
||||||
refIsResource*itemTitleRefShift,
|
refIsResource*itemTitleRefShift,
|
||||||
editShowClipboard
|
editShowClipboard
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editSendClipboard) {
|
resource rMenuItem (editSendClipboard) {
|
||||||
editSendClipboard,
|
editSendClipboard,
|
||||||
@ -202,7 +202,7 @@ resource rMenuItem (editSendClipboard) {
|
|||||||
0,
|
0,
|
||||||
refIsResource*itemTitleRefShift,
|
refIsResource*itemTitleRefShift,
|
||||||
editSendClipboard
|
editSendClipboard
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileNewConnection) { /* New menu item */
|
resource rMenuItem (fileNewConnection) { /* New menu item */
|
||||||
fileNewConnection, /* menu item ID */
|
fileNewConnection, /* menu item ID */
|
||||||
@ -210,7 +210,7 @@ resource rMenuItem (fileNewConnection) { /* New menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
fileNewConnection /* menu item title resource ID */
|
fileNewConnection /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileClose) { /* Close menu item */
|
resource rMenuItem (fileClose) { /* Close menu item */
|
||||||
fileClose, /* menu item ID */
|
fileClose, /* menu item ID */
|
||||||
@ -219,7 +219,7 @@ resource rMenuItem (fileClose) { /* Close menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
fileClose /* menu item title resource ID */
|
fileClose /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileQuit) { /* Quit menu item */
|
resource rMenuItem (fileQuit) { /* Quit menu item */
|
||||||
fileQuit, /* menu item ID */
|
fileQuit, /* menu item ID */
|
||||||
@ -227,7 +227,7 @@ resource rMenuItem (fileQuit) { /* Quit menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
fileQuit /* menu item title resource ID */
|
fileQuit /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (appleAbout) { /* About menu item */
|
resource rMenuItem (appleAbout) { /* About menu item */
|
||||||
appleAbout, /* menu item ID */
|
appleAbout, /* menu item ID */
|
||||||
@ -236,7 +236,7 @@ resource rMenuItem (appleAbout) { /* About menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
appleAbout /* menu item title resource ID */
|
appleAbout /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* the various strings */
|
/* the various strings */
|
||||||
resource rPString (appleMenu, noCrossBank) {"@"};
|
resource rPString (appleMenu, noCrossBank) {"@"};
|
||||||
@ -265,7 +265,7 @@ resource rMenuBar (1+noKB) { /* the menu bar */
|
|||||||
fileMenu+noKB,
|
fileMenu+noKB,
|
||||||
editMenu+noKB
|
editMenu+noKB
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenu (fileMenu+noKB) { /* the File menu */
|
resource rMenu (fileMenu+noKB) { /* the File menu */
|
||||||
fileMenu, /* menu ID */
|
fileMenu, /* menu ID */
|
||||||
@ -278,7 +278,7 @@ resource rMenu (fileMenu+noKB) { /* the File menu */
|
|||||||
fileClose+noKB,
|
fileClose+noKB,
|
||||||
fileQuit+noKB
|
fileQuit+noKB
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenu (editMenu+noKB) { /* the Edit menu */
|
resource rMenu (editMenu+noKB) { /* the Edit menu */
|
||||||
editMenu, /* menu ID */
|
editMenu, /* menu ID */
|
||||||
@ -295,7 +295,7 @@ resource rMenu (editMenu+noKB) { /* the Edit menu */
|
|||||||
editShowClipboard,
|
editShowClipboard,
|
||||||
editSendClipBoard
|
editSendClipBoard
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editUndo+noKB) { /* Undo menu item */
|
resource rMenuItem (editUndo+noKB) { /* Undo menu item */
|
||||||
editUndo, /* menu item ID */
|
editUndo, /* menu item ID */
|
||||||
@ -304,7 +304,7 @@ resource rMenuItem (editUndo+noKB) { /* Undo menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
editUndo /* menu item title resource ID */
|
editUndo /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editCut+noKB) { /* Cut menu item */
|
resource rMenuItem (editCut+noKB) { /* Cut menu item */
|
||||||
editCut, /* menu item ID */
|
editCut, /* menu item ID */
|
||||||
@ -312,7 +312,7 @@ resource rMenuItem (editCut+noKB) { /* Cut menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editCut /* menu item title resource ID */
|
editCut /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editCopy+noKB) { /* Copy menu item */
|
resource rMenuItem (editCopy+noKB) { /* Copy menu item */
|
||||||
editCopy, /* menu item ID */
|
editCopy, /* menu item ID */
|
||||||
@ -320,7 +320,7 @@ resource rMenuItem (editCopy+noKB) { /* Copy menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editCopy /* menu item title resource ID */
|
editCopy /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (editPaste+noKB) { /* Paste menu item */
|
resource rMenuItem (editPaste+noKB) { /* Paste menu item */
|
||||||
editPaste, /* menu item ID */
|
editPaste, /* menu item ID */
|
||||||
@ -328,7 +328,7 @@ resource rMenuItem (editPaste+noKB) { /* Paste menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
editPaste /* menu item title resource ID */
|
editPaste /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileNewConnection+noKB) { /* New menu item */
|
resource rMenuItem (fileNewConnection+noKB) { /* New menu item */
|
||||||
fileNewConnection, /* menu item ID */
|
fileNewConnection, /* menu item ID */
|
||||||
@ -336,7 +336,7 @@ resource rMenuItem (fileNewConnection+noKB) { /* New menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
fileNewConnection /* menu item title resource ID */
|
fileNewConnection /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileClose+noKB) { /* Close menu item */
|
resource rMenuItem (fileClose+noKB) { /* Close menu item */
|
||||||
fileClose, /* menu item ID */
|
fileClose, /* menu item ID */
|
||||||
@ -345,7 +345,7 @@ resource rMenuItem (fileClose+noKB) { /* Close menu item */
|
|||||||
refIsResource*itemTitleRefShift /* flags */
|
refIsResource*itemTitleRefShift /* flags */
|
||||||
+ fDivider,
|
+ fDivider,
|
||||||
fileClose /* menu item title resource ID */
|
fileClose /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rMenuItem (fileQuit+noKB) { /* Quit menu item */
|
resource rMenuItem (fileQuit+noKB) { /* Quit menu item */
|
||||||
fileQuit, /* menu item ID */
|
fileQuit, /* menu item ID */
|
||||||
@ -353,7 +353,7 @@ resource rMenuItem (fileQuit+noKB) { /* Quit menu item */
|
|||||||
0, /* check character */
|
0, /* check character */
|
||||||
refIsResource*itemTitleRefShift, /* flags */
|
refIsResource*itemTitleRefShift, /* flags */
|
||||||
fileQuit /* menu item title resource ID */
|
fileQuit /* menu item title resource ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*- About Box --------------------------------------------------*/
|
/*- About Box --------------------------------------------------*/
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ resource rAlertString (1) {
|
|||||||
"This program contains material from the ORCA/C Run-Time Libraries, "
|
"This program contains material from the ORCA/C Run-Time Libraries, "
|
||||||
"Copyright 1987-1996 by Byte Works Inc. Used with permission.\n"
|
"Copyright 1987-1996 by Byte Works Inc. Used with permission.\n"
|
||||||
":^#0\$00";
|
":^#0\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*- Resources used by Finder, etc. -----------------------------*/
|
/*- Resources used by Finder, etc. -----------------------------*/
|
||||||
|
|
||||||
@ -378,7 +378,7 @@ resource rVersion (1) {
|
|||||||
"VNCview GS", /* Title */
|
"VNCview GS", /* Title */
|
||||||
"Copyright \$A9 2002\$D12004\n"
|
"Copyright \$A9 2002\$D12004\n"
|
||||||
"by Stephen Heumann"
|
"by Stephen Heumann"
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rBundle (1, preload, nospecialmemory) {
|
resource rBundle (1, preload, nospecialmemory) {
|
||||||
1, /* Icon ID */
|
1, /* Icon ID */
|
||||||
@ -404,7 +404,7 @@ resource rBundle (1, preload, nospecialmemory) {
|
|||||||
empty {},
|
empty {},
|
||||||
empty {}
|
empty {}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rIcon (1, preload, nospecialmemory) {
|
resource rIcon (1, preload, nospecialmemory) {
|
||||||
$8000,
|
$8000,
|
||||||
@ -486,93 +486,93 @@ resource rAlertString (noMarinettiError) {
|
|||||||
"Could not load the Marinetti TCP/IP stack. Please ensure that "
|
"Could not load the Marinetti TCP/IP stack. Please ensure that "
|
||||||
"you have Marinetti 2.0 or later installed on this computer."
|
"you have Marinetti 2.0 or later installed on this computer."
|
||||||
":^#5\$00";
|
":^#5\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (noCryptoError) {
|
resource rAlertString (noCryptoError) {
|
||||||
"42:"
|
"42:"
|
||||||
"Could not load the Crypto tool set. Please install the crypto "
|
"Could not load the Crypto tool set. Please install the crypto "
|
||||||
"tool set version 1.0 or later to use passwords in VNCview GS."
|
"tool set version 1.0 or later to use passwords in VNCview GS."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (outOfMemoryError) {
|
resource rAlertString (outOfMemoryError) {
|
||||||
"42:"
|
"42:"
|
||||||
"Could not allocate sufficient memory. Please reduce memory "
|
"Could not allocate sufficient memory. Please reduce memory "
|
||||||
"usage and run VNCview GS again."
|
"usage and run VNCview GS again."
|
||||||
":^#5\$00";
|
":^#5\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (disconnectTCPIPAlert) {
|
resource rAlertString (disconnectTCPIPAlert) {
|
||||||
"20:"
|
"20:"
|
||||||
"Do you want to disconnect your TCP/IP connection?"
|
"Do you want to disconnect your TCP/IP connection?"
|
||||||
":^#3:#2\$00";
|
":^#3:#2\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (authFailedError) {
|
resource rAlertString (authFailedError) {
|
||||||
"52:"
|
"52:"
|
||||||
"Authentication failed. Please re-type your password and try again."
|
"Authentication failed. Please re-type your password and try again."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (authTooManyError) {
|
resource rAlertString (authTooManyError) {
|
||||||
"72:"
|
"72:"
|
||||||
"Authentication has failed too many times. Please check that you are "
|
"Authentication has failed too many times. Please check that you are "
|
||||||
"using the correct password and wait a while before connecting again."
|
"using the correct password and wait a while before connecting again."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (connectionFailedAlert) {
|
resource rAlertString (connectionFailedAlert) {
|
||||||
"92;"
|
"92;"
|
||||||
"Connection failed:\n"
|
"Connection failed:\n"
|
||||||
"*0"
|
"*0"
|
||||||
";^#6\$00";
|
";^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (badRFBVersionAlert) {
|
resource rAlertString (badRFBVersionAlert) {
|
||||||
"42:"
|
"42:"
|
||||||
"The server reported an RFB protocal version incompatible with VNCview "
|
"The server reported an RFB protocal version incompatible with VNCview "
|
||||||
"GS or is not an RFB server."
|
"GS or is not an RFB server."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (badAuthTypeAlert) {
|
resource rAlertString (badAuthTypeAlert) {
|
||||||
"42:"
|
"42:"
|
||||||
"The connection failed because the server requested an authentication "
|
"The connection failed because the server requested an authentication "
|
||||||
"type not recognized by VNCview GS."
|
"type not recognized by VNCview GS."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (noTCPIPConnectionError) {
|
resource rAlertString (noTCPIPConnectionError) {
|
||||||
"32:"
|
"32:"
|
||||||
"A TCP/IP connection could not be established."
|
"A TCP/IP connection could not be established."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (badGetIpidError) {
|
resource rAlertString (badGetIpidError) {
|
||||||
"42:"
|
"42:"
|
||||||
"There was an error while resolving the hostname you provided or "
|
"There was an error while resolving the hostname you provided or "
|
||||||
"preparing to connect to it."
|
"preparing to connect to it."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (badOptionNegotiationError) {
|
resource rAlertString (badOptionNegotiationError) {
|
||||||
"32:"
|
"32:"
|
||||||
"There was an error while negotiating protocol options."
|
"There was an error while negotiating protocol options."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (badHandshakingError) {
|
resource rAlertString (badHandshakingError) {
|
||||||
"32:"
|
"32:"
|
||||||
"There was an error while establishing a VNC connection with the server."
|
"There was an error while establishing a VNC connection with the server."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rAlertString (screenTooBigError) {
|
resource rAlertString (screenTooBigError) {
|
||||||
"72:"
|
"72:"
|
||||||
"The server's framebuffer resolution is too big for VNCview GS. "
|
"The server's framebuffer resolution is too big for VNCview GS. "
|
||||||
"VNCview GS does not support resolutions greater than 16,384 by 16,384."
|
"VNCview GS does not support resolutions greater than 16,384 by 16,384."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
resource rAlertString (badReadTCPError) {
|
resource rAlertString (badReadTCPError) {
|
||||||
@ -580,14 +580,14 @@ resource rAlertString (badReadTCPError) {
|
|||||||
"The TCP/IP stack did not return the amount of data expected. This "
|
"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."
|
"may be indicative of a bug in Marinetti or in the VNC server software."
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
resource rAlertString (10000) {
|
resource rAlertString (10000) {
|
||||||
"72:"
|
"72:"
|
||||||
"*0"
|
"*0"
|
||||||
":^#6\$00";
|
":^#6\$00";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*- New VNC Connection window resources ----------------------------------*/
|
/*- New VNC Connection window resources ----------------------------------*/
|
||||||
|
|
||||||
@ -608,7 +608,7 @@ resource rWindParam1 (NCWindow+winNewConnection) {
|
|||||||
infront, /* wPlane */
|
infront, /* wPlane */
|
||||||
NCWindow+winNewConnection, /* wStorage */
|
NCWindow+winNewConnection, /* wStorage */
|
||||||
$0009 /* wInVerb */
|
$0009 /* wInVerb */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rControlList (NCWindow+winNewConnection) {{
|
resource rControlList (NCWindow+winNewConnection) {{
|
||||||
NCWindow+btnConnect,
|
NCWindow+btnConnect,
|
||||||
@ -632,7 +632,7 @@ resource rControlList (NCWindow+winNewConnection) {{
|
|||||||
NCWindow+txtPreferredEncoding,
|
NCWindow+txtPreferredEncoding,
|
||||||
NCWindow+radRaw,
|
NCWindow+radRaw,
|
||||||
NCWindow+radHextile,
|
NCWindow+radHextile,
|
||||||
}};
|
}};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+btnConnect) {
|
resource rControlTemplate (NCWindow+btnConnect) {
|
||||||
btnConnect, /* Control ID */
|
btnConnect, /* Control ID */
|
||||||
@ -645,7 +645,7 @@ resource rControlTemplate (NCWindow+btnConnect) {
|
|||||||
nil, /* color table ref */
|
nil, /* color table ref */
|
||||||
{"\$0D","\$0D",0,0} /* key equivalents (esc) */
|
{"\$0D","\$0D",0,0} /* key equivalents (esc) */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+btnConnect) {"Connect"};
|
resource rPString (NCWindow+btnConnect) {"Connect"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+btnCancel) {
|
resource rControlTemplate (NCWindow+btnCancel) {
|
||||||
@ -659,7 +659,7 @@ resource rControlTemplate (NCWindow+btnCancel) {
|
|||||||
nil, /* color table ref */
|
nil, /* color table ref */
|
||||||
{"\$1B","\$1B",0,0} /* key equivalents (esc) */
|
{"\$1B","\$1B",0,0} /* key equivalents (esc) */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+btnCancel) {"Cancel"};
|
resource rPString (NCWindow+btnCancel) {"Cancel"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+linServer) {
|
resource rControlTemplate (NCWindow+linServer) {
|
||||||
@ -672,7 +672,7 @@ resource rControlTemplate (NCWindow+linServer) {
|
|||||||
255, /* Max Size */
|
255, /* Max Size */
|
||||||
0 /* text ref */
|
0 /* text ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtServer) {
|
resource rControlTemplate (NCWindow+txtServer) {
|
||||||
txtServer,
|
txtServer,
|
||||||
@ -683,7 +683,7 @@ resource rControlTemplate (NCWindow+txtServer) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtServer /* Title ref */
|
NCWindow+txtServer /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtServer) {"VNC Server:"};
|
resource rTextForLETextBox2 (NCWindow+txtServer) {"VNC Server:"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtServerInfo) {
|
resource rControlTemplate (NCWindow+txtServerInfo) {
|
||||||
@ -695,11 +695,11 @@ resource rControlTemplate (NCWindow+txtServerInfo) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtServerInfo /* Title ref */
|
NCWindow+txtServerInfo /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtServerInfo) {
|
resource rTextForLETextBox2 (NCWindow+txtServerInfo) {
|
||||||
"\$01J\$01\$00Use \$01S\$03\$00host:display\$01S\$00\$00 "
|
"\$01J\$01\$00Use \$01S\$03\$00host:display\$01S\$00\$00 "
|
||||||
"(or \$01S\$03\$00host\$01S\$00\$00 for display 0)."
|
"(or \$01S\$03\$00host\$01S\$00\$00 for display 0)."
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtPassword) {
|
resource rControlTemplate (NCWindow+txtPassword) {
|
||||||
txtPassword,
|
txtPassword,
|
||||||
@ -710,7 +710,7 @@ resource rControlTemplate (NCWindow+txtPassword) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtPassword /* Title ref */
|
NCWindow+txtPassword /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtPassword) {"Password:"};
|
resource rTextForLETextBox2 (NCWindow+txtPassword) {"Password:"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+linPassword) {
|
resource rControlTemplate (NCWindow+linPassword) {
|
||||||
@ -724,7 +724,7 @@ resource rControlTemplate (NCWindow+linPassword) {
|
|||||||
0, /* text ref */
|
0, /* text ref */
|
||||||
$D7 /* password character */
|
$D7 /* password character */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtDisplay) {
|
resource rControlTemplate (NCWindow+txtDisplay) {
|
||||||
txtDisplay,
|
txtDisplay,
|
||||||
@ -735,7 +735,7 @@ resource rControlTemplate (NCWindow+txtDisplay) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtDisplay /* Title ref */
|
NCWindow+txtDisplay /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtDisplay) {" Display "};
|
resource rTextForLETextBox2 (NCWindow+txtDisplay) {" Display "};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+rectDisplay) {
|
resource rControlTemplate (NCWindow+rectDisplay) {
|
||||||
@ -746,7 +746,7 @@ resource rControlTemplate (NCWindow+rectDisplay) {
|
|||||||
$1000,
|
$1000,
|
||||||
0
|
0
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+rad320) {
|
resource rControlTemplate (NCWindow+rad320) {
|
||||||
rad320,
|
rad320,
|
||||||
@ -758,7 +758,7 @@ resource rControlTemplate (NCWindow+rad320) {
|
|||||||
NCWindow+rad320, /* Title ref */
|
NCWindow+rad320, /* Title ref */
|
||||||
1 /* initial value */
|
1 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+rad320) {"320 x 200"};
|
resource rPString (NCWindow+rad320) {"320 x 200"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtColor) {
|
resource rControlTemplate (NCWindow+txtColor) {
|
||||||
@ -770,7 +770,7 @@ resource rControlTemplate (NCWindow+txtColor) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtColor /* Title ref */
|
NCWindow+txtColor /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtColor) {"Color"};
|
resource rTextForLETextBox2 (NCWindow+txtColor) {"Color"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+rad640) {
|
resource rControlTemplate (NCWindow+rad640) {
|
||||||
@ -783,7 +783,7 @@ resource rControlTemplate (NCWindow+rad640) {
|
|||||||
NCWindow+rad640, /* Title ref */
|
NCWindow+rad640, /* Title ref */
|
||||||
0 /* initial value */
|
0 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+rad640) {"640 x 200"};
|
resource rPString (NCWindow+rad640) {"640 x 200"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtGray) {
|
resource rControlTemplate (NCWindow+txtGray) {
|
||||||
@ -795,7 +795,7 @@ resource rControlTemplate (NCWindow+txtGray) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtGray /* Title ref */
|
NCWindow+txtGray /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtGray) {"Grayscale"};
|
resource rTextForLETextBox2 (NCWindow+txtGray) {"Grayscale"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+chkShared) {
|
resource rControlTemplate (NCWindow+chkShared) {
|
||||||
@ -808,7 +808,7 @@ resource rControlTemplate (NCWindow+chkShared) {
|
|||||||
NCWindow+chkShared, /* Title ref */
|
NCWindow+chkShared, /* Title ref */
|
||||||
1 /* initial value */
|
1 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+chkShared) {"Request Shared Session"};
|
resource rPString (NCWindow+chkShared) {"Request Shared Session"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+chkClipboard) {
|
resource rControlTemplate (NCWindow+chkClipboard) {
|
||||||
@ -821,7 +821,7 @@ resource rControlTemplate (NCWindow+chkClipboard) {
|
|||||||
NCWindow+chkClipboard, /* Title ref */
|
NCWindow+chkClipboard, /* Title ref */
|
||||||
1 /* initial value */
|
1 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+chkClipboard) {"Allow Clipboard"};
|
resource rPString (NCWindow+chkClipboard) {"Allow Clipboard"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtTransfers) {
|
resource rControlTemplate (NCWindow+txtTransfers) {
|
||||||
@ -833,7 +833,7 @@ resource rControlTemplate (NCWindow+txtTransfers) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtTransfers /* Title ref */
|
NCWindow+txtTransfers /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtTransfers) {"Transfers from Server"};
|
resource rTextForLETextBox2 (NCWindow+txtTransfers) {"Transfers from Server"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+chkEmul3Btn) {
|
resource rControlTemplate (NCWindow+chkEmul3Btn) {
|
||||||
@ -846,7 +846,7 @@ resource rControlTemplate (NCWindow+chkEmul3Btn) {
|
|||||||
NCWindow+chkEmul3Btn, /* Title ref */
|
NCWindow+chkEmul3Btn, /* Title ref */
|
||||||
1 /* initial value */
|
1 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+chkEmul3Btn) {"Emulate 3-Button Mouse"};
|
resource rPString (NCWindow+chkEmul3Btn) {"Emulate 3-Button Mouse"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+chkViewOnly) {
|
resource rControlTemplate (NCWindow+chkViewOnly) {
|
||||||
@ -859,7 +859,7 @@ resource rControlTemplate (NCWindow+chkViewOnly) {
|
|||||||
NCWindow+chkViewOnly, /* Title ref */
|
NCWindow+chkViewOnly, /* Title ref */
|
||||||
0 /* initial value */
|
0 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+chkViewOnly) {"View Only Mode"};
|
resource rPString (NCWindow+chkViewOnly) {"View Only Mode"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+txtPreferredEncoding) {
|
resource rControlTemplate (NCWindow+txtPreferredEncoding) {
|
||||||
@ -871,7 +871,7 @@ resource rControlTemplate (NCWindow+txtPreferredEncoding) {
|
|||||||
0,
|
0,
|
||||||
NCWindow+txtPreferredEncoding /* Title ref */
|
NCWindow+txtPreferredEncoding /* Title ref */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rTextForLETextBox2 (NCWindow+txtPreferredEncoding) {"Preferred Encoding:"};
|
resource rTextForLETextBox2 (NCWindow+txtPreferredEncoding) {"Preferred Encoding:"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+radRaw) {
|
resource rControlTemplate (NCWindow+radRaw) {
|
||||||
@ -884,7 +884,7 @@ resource rControlTemplate (NCWindow+radRaw) {
|
|||||||
NCWindow+radRaw, /* Title ref */
|
NCWindow+radRaw, /* Title ref */
|
||||||
1 /* initial value */
|
1 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+radRaw) {"Raw"};
|
resource rPString (NCWindow+radRaw) {"Raw"};
|
||||||
|
|
||||||
resource rControlTemplate (NCWindow+radHextile) {
|
resource rControlTemplate (NCWindow+radHextile) {
|
||||||
@ -897,7 +897,7 @@ resource rControlTemplate (NCWindow+radHextile) {
|
|||||||
NCWindow+radHextile, /* Title ref */
|
NCWindow+radHextile, /* Title ref */
|
||||||
0 /* initial value */
|
0 /* initial value */
|
||||||
}};
|
}};
|
||||||
};
|
};
|
||||||
resource rPString (NCWindow+radHextile) {"Hextile"};
|
resource rPString (NCWindow+radHextile) {"Hextile"};
|
||||||
|
|
||||||
|
|
||||||
@ -920,7 +920,7 @@ resource rWindParam1 (1002) {
|
|||||||
infront, /* wPlane */
|
infront, /* wPlane */
|
||||||
nil, /* wStorage */
|
nil, /* wStorage */
|
||||||
$0000 /* wInVerb */
|
$0000 /* wInVerb */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rPString(10002) {"Press \$11. to cancel."};
|
resource rPString(10002) {"Press \$11. to cancel."};
|
||||||
|
|
||||||
@ -944,7 +944,7 @@ resource rWindParam1 (1003) {
|
|||||||
infront, /* wPlane */
|
infront, /* wPlane */
|
||||||
nil, /* wStorage */
|
nil, /* wStorage */
|
||||||
$0800 /* wInVerb */
|
$0800 /* wInVerb */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 320 mode */
|
/* 320 mode */
|
||||||
resource rWindParam1 (1004) {
|
resource rWindParam1 (1004) {
|
||||||
@ -964,7 +964,7 @@ resource rWindParam1 (1004) {
|
|||||||
infront, /* wPlane */
|
infront, /* wPlane */
|
||||||
nil, /* wStorage */
|
nil, /* wStorage */
|
||||||
$0800 /* wInVerb */
|
$0800 /* wInVerb */
|
||||||
};
|
};
|
||||||
|
|
||||||
resource rWindColor (1) {
|
resource rWindColor (1) {
|
||||||
0x0000,
|
0x0000,
|
||||||
@ -972,4 +972,4 @@ resource rWindColor (1) {
|
|||||||
0x020F,
|
0x020F,
|
||||||
0xF0AA,
|
0xF0AA,
|
||||||
0x00F0
|
0x00F0
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user