/*
	File:		TerminalTools.h

	Copyright:	© 1984-1993 by Apple Computer, Inc., all rights reserved.

	WARNING
	This file was auto generated by the interfacer tool. Modifications
	must be made to the master file.

*/

#ifndef __TERMINALTOOLS__
#define __TERMINALTOOLS__

#ifdef __cplusplus
extern "C" {
#endif

#if PRAGMA_IMPORT
#pragma import on
#endif

#if PRAGMA_STRUCT_ALIGN
	#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
	#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
	#pragma pack(2)
#endif

#ifndef __DIALOGS__
#include <Dialogs.H>
#endif

#ifndef __TERMINALS__
#include <Terminals.H>
#endif

#define tdefType OST_tdef

#define tvalType OST_tval

#define tsetType OST_tset

#define tlocType OST_tloc

#define tscrType OST_tscr

#define tbndType OST_tbnd

#define tverType OST_vers

enum  {
/* messages */
	tmInitMsg			= 0,
	tmDisposeMsg			= 1,
	tmSuspendMsg			= 2,
	tmResumeMsg			= 3,
	tmMenuMsg			= 4,
	tmEventMsg			= 5,
	tmActivateMsg			= 6,
	tmDeactivateMsg			= 7,
	tmGetErrorStringMsg			= 8,
	tmIdleMsg			= 50,
	tmResetMsg			= 51,
	tmKeyMsg			= 100,
	tmStreamMsg			= 101,
	tmResizeMsg			= 102,
	tmUpdateMsg			= 103,
	tmClickMsg			= 104,
	tmGetSelectionMsg			= 105,
	tmSetSelectionMsg			= 106,
	tmScrollMsg			= 107,
	tmClearMsg			= 108
};

enum  {
	tmGetLineMsg			= 109,
	tmPaintMsg			= 110,
	tmCursorMsg			= 111,
	tmGetEnvironsMsg			= 112,
	tmDoTermKeyMsg			= 113,
	tmCountTermKeysMsg			= 114,
	tmGetIndTermKeyMsg			= 115,
/* messages for validate DefProc	*/
	tmValidateMsg			= 0,
	tmDefaultMsg			= 1,
/* messages for Setup DefProc	*/
	tmSpreflightMsg			= 0,
	tmSsetupMsg			= 1,
	tmSitemMsg			= 2,
	tmSfilterMsg			= 3,
	tmScleanupMsg			= 4,
/* messages for scripting defProc	*/
	tmMgetMsg			= 0,
	tmMsetMsg			= 1,
/* messages for localization defProc  */
	tmL2English			= 0,
	tmL2Intl			= 1
};

struct TMSearchBlock {
	StringHandle			theString;
	Rect			where;
	TMSearchTypes			searchType;
	TerminalSearchCallBackUPP	callBack;
	short			refnum;
	struct TMSearchBlock		*next;
};
typedef struct TMSearchBlock TMSearchBlock;

typedef TMSearchBlock *TMSearchBlockPtr;

struct TMSetupStruct {
	DialogPtr			theDialog;
	short			count;
	Ptr			theConfig;
	short			procID;			/* procID of the tool */
};
typedef struct TMSetupStruct TMSetupStruct;

typedef TMSetupStruct *TMSetupPtr;

#endif

#if PRAGMA_STRUCT_ALIGN
	#pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
	#pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
	#pragma pack()
#endif

#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif

#ifdef __cplusplus
}
#endif

