/*

	This is the REZ source file for the CheapComm appication.
	
	By Don Gaspar
	
	MOOSE, Inc. (Macintosh Object-Oriented Software Engineering)
	10866 Northridge Square
	Cupertino, CA 95014
	(408)252-7576
	
	Tuesday, April 17, 1990
	
*/


#include "Types.r"

resource 'ALRT' (128, purgeable) {
	{40, 20, 180, 400},
	128,
	{	/* array: 4 elements */
		/* [1] */
		OK, visible, silent,
		/* [2] */
		OK, visible, silent,
		/* [3] */
		OK, visible, silent,
		/* [4] */
		OK, visible, silent
	}
};

resource 'ALRT' (129, purgeable) {
	{40, 20, 180, 350},
	129,
	{	/* array: 4 elements */
		/* [1] */
		OK, visible, silent,
		/* [2] */
		OK, visible, silent,
		/* [3] */
		OK, visible, silent,
		/* [4] */
		OK, visible, silent
	}
};

resource 'WIND' (1, purgeable, preload) {
	{80, 5, 340, 475},
	32,
	visible,
	goAway,
	0x1,
	"CheapComm"
};


resource 'SIZE' (-1) {
	dontSaveScreen,
	acceptSuspendResumeEvents,
	enableOptionSwitch,
	canBackground,
	multiFinderAware,
	backgroundAndForeground,
	dontGetFrontClicks,
	ignoreChildDiedEvents,
	not32BitCompatible,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	262144,
	131072
};

resource 'SIZE' (0) {
	dontSaveScreen,
	acceptSuspendResumeEvents,
	enableOptionSwitch,
	canBackground,
	multiFinderAware,
	backgroundAndForeground,
	dontGetFrontClicks,
	ignoreChildDiedEvents,
	not32BitCompatible,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	reserved,
	524288,
	131072
};
resource 'MENU' (132,preload) {
	132,
	textMenuProc,
	allEnabled,
	enabled,
	"Session",
	{	/* array: 6 elements */
		/* [1] */
		"Open Connection", noIcon, noKey, noMark, plain,
		/* [2] */
		"-", noIcon, noKey, noMark, plain,
		/* [3] */
		"Close Connection", noIcon, "+", noMark, plain,
		/* [4] */
		"Break", noIcon, ".", noMark, plain,
		/* [5] */
		"Send XON", noIcon, noKey, noMark, plain,
		/* [6] */
		"Send XOFF", noIcon, noKey, noMark, plain
	}
};

resource 'MENU' (128, preload) {
	128,
	textMenuProc,
	0x7FFFFFFD,
	enabled,
	apple,
	{	/* array: 2 elements */
		/* [1] */
		"About CheapCommÉ", noIcon, noKey, noMark, plain,
		/* [2] */
		"-", noIcon, noKey, noMark, plain
	}
};

resource 'MENU' (129, preload) {
	129,
	textMenuProc,
	allEnabled,
	enabled,
	"File",
	{	/* array: 18 elements */
		/* [1] */
		"New", noIcon, "N", noMark, plain,
		/* [2] */
		"Open", noIcon, "O", noMark, plain,
		/* [3] */
		"-", noIcon, noKey, noMark, plain,
		/* [4] */
		"Close", noIcon, "W", noMark, plain,
		/* [5] */
		"Save", noIcon, "S", noMark, plain,
		/* [6] */
		"Save AsÉ", noIcon, noKey, noMark, plain,
		/* [7] */
		"Revert", noIcon, noKey, noMark, plain,
		/* [8] */
		"-", noIcon, noKey, noMark, plain,
		/* [9] */
		"Send File", noIcon, "T", noMark, plain,
		/* [10] */
		"Receive File", noIcon, "R", noMark, plain,
		/* [11] */
		"-", noIcon, noKey, noMark, plain,
		/* [12] */
		"Open Capture...", noIcon, noKey, noMark, plain,
		/* [13] */
		"Append Capture", noIcon, noKey, noMark, plain,
		/* [14] */
		"-", noIcon, noKey, noMark, plain,
		/* [15] */
		"Page SetupÉ", noIcon, noKey, noMark, plain,
		/* [16] */
		"PrintÉ", noIcon, noKey, noMark, plain,
		/* [17] */
		"-", noIcon, noKey, noMark, plain,
		/* [18] */
		"Quit", noIcon, "Q", noMark, plain
	}
};

resource 'MENU' (130, preload) {
	130,
	textMenuProc,
	0x0,
	enabled,
	"Edit",
	{	/* array: 14 elements */
		/* [1] */
		"Undo", noIcon, "Z", noMark, plain,
		/* [2] */
		"-", noIcon, noKey, noMark, plain,
		/* [3] */
		"Cut", noIcon, "X", noMark, plain,
		/* [4] */
		"Copy", noIcon, "C", noMark, plain,
		/* [5] */
		"Paste", noIcon, "V", noMark, plain,
		/* [6] */
		"Clear", noIcon, noKey, noMark, plain,
		/* [7] */
		"Select All", noIcon, "A", noMark, plain,
		/* [8] */
		"-", noIcon, noKey, noMark, plain,
		/* [9] */
		"Find...", noIcon, "F", noMark, plain,
		/* [10] */
		"Find Again", noIcon, "G", noMark, plain,
		/* [11] */
		"-", noIcon, noKey, noMark, plain,
		/* [12] */
		"Recall Last Line", noIcon, "R", noMark, plain,
		/* [13] */
		"-", noIcon, noKey, noMark, plain,
		/* [14] */
		"Show Clipboard", noIcon, noKey, noMark, plain
	}
};

resource 'MENU' (131, preload) {
	131,
	textMenuProc,
	0x0,
	enabled,
	"Settings",
	{	/* array: 3 elements */
		/* [1] */
		"ConnectionÉ", noIcon, noKey, noMark, plain,
		/* [2] */
		"File TransferÉ", noIcon, noKey, noMark, plain,
		/* [3] */
		"TerminalÉ", noIcon, noKey, noMark, plain
	}
};

resource 'MBAR' (128, preload) {
	{	/* array MenuArray: 5 elements */
		/* [1] */
		128,
		/* [2] */
		129,
		/* [3] */
		130,
		/* [4] */
		131,
		/* [5] */
		132
	}
};

resource 'DITL' (128, purgeable) {
	{	/* array DITLarray: 5 elements */
		/* [1] */
		{99, 285, 119, 365},
		Button {
			enabled,
			"OK"
		},
		/* [2] */
		{8, 8, 26, 250},
		StaticText {
			disabled,
			"CheapComm"
		},
		/* [3] */
		{103, 6, 120, 251},
		StaticText {
			disabled,
			"Copyright © 1990 by MOOSE, Inc. ALL RIGHTS RESERVED."
		},
		/* [4] */
		{52, 8, 69, 204},
		StaticText {
			disabled,
			"By Don Gaspar"
		},
		/* [5] */
		{86, 6, 103, 211},
		StaticText {
			disabled,
			"For Dr. Dobb's Journal of Software Tools."
		}
	}
};

resource 'DITL' (129, purgeable) {
	{	/* array DITLarray: 3 elements */
		/* [1] */
		{100, 230, 120, 310},
		Button {
			enabled,
			"OK"
		},
		/* [2] */
		{10, 60, 76, 310},
		StaticText {
			disabled,
			"^0"
		},
		/* [3] */
		{8, 8, 40, 40},
		Icon {
			disabled,
			2
		}
	}
};


resource 'CNTL' (10, "Scroll bar") {
	{241, 255, 257, 392},
	1,
	16,
	100,
	1,
	scrollBarProc,
	10,
	"Scroll bar"
};

resource 'CNTL' (11, "Scroll bar") {
	{255, 391, 242, 407},
	1,
	16,
	100,
	1,
	scrollBarProc,
	11,
	"Scroll bar"
};
