/************************************************************ Created: Thursday, September 12, 1991 at 11:06 AM TerminalTools.h C Interface to the Macintosh Libraries Copyright Apple Computer, Inc. 1988-1991 All rights reserved ************************************************************/ #ifndef __TERMINALTOOLS__ #define __TERMINALTOOLS__ #ifndef __DIALOGS__ #include #endif #ifndef __TERMINALS__ #include #endif enum { #define tdefType 'tdef' #define tvalType 'tval' #define tsetType 'tset' #define tlocType 'tloc' #define tscrType 'tscr' #define tbndType 'tbnd' #define tverType 'vers' /* 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; ProcPtr 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