home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  3.1 KB  |  168 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __TERMINALTOOLS__
  18. #define __TERMINALTOOLS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21. #include <ConditionalMacros.h>
  22. #endif
  23. #ifndef __DIALOGS__
  24. #include <Dialogs.h>
  25. #endif
  26. #ifndef __TERMINALS__
  27. #include <Terminals.h>
  28. #endif
  29.  
  30.  
  31.  
  32. #if PRAGMA_ONCE
  33. #pragma once
  34. #endif
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #if PRAGMA_IMPORT
  41. #pragma import on
  42. #endif
  43.  
  44. #if PRAGMA_STRUCT_ALIGN
  45.     #pragma options align=mac68k
  46. #elif PRAGMA_STRUCT_PACKPUSH
  47.     #pragma pack(push, 2)
  48. #elif PRAGMA_STRUCT_PACK
  49.     #pragma pack(2)
  50. #endif
  51.  
  52.  
  53. enum {
  54.     tdefType                    = FOUR_CHAR_CODE('tdef'),
  55.     tvalType                    = FOUR_CHAR_CODE('tval'),
  56.     tsetType                    = FOUR_CHAR_CODE('tset'),
  57.     tlocType                    = FOUR_CHAR_CODE('tloc'),
  58.     tscrType                    = FOUR_CHAR_CODE('tscr'),
  59.     tbndType                    = FOUR_CHAR_CODE('tbnd'),
  60.     tverType                    = FOUR_CHAR_CODE('vers')
  61. };
  62.  
  63.  
  64. enum {
  65.                                                                 /* messages */
  66.     tmInitMsg                    = 0,
  67.     tmDisposeMsg                = 1,
  68.     tmSuspendMsg                = 2,
  69.     tmResumeMsg                    = 3,
  70.     tmMenuMsg                    = 4,
  71.     tmEventMsg                    = 5,
  72.     tmActivateMsg                = 6,
  73.     tmDeactivateMsg                = 7,
  74.     tmGetErrorStringMsg            = 8,
  75.     tmIdleMsg                    = 50,
  76.     tmResetMsg                    = 51,
  77.     tmKeyMsg                    = 100,
  78.     tmStreamMsg                    = 101,
  79.     tmResizeMsg                    = 102,
  80.     tmUpdateMsg                    = 103,
  81.     tmClickMsg                    = 104,
  82.     tmGetSelectionMsg            = 105,
  83.     tmSetSelectionMsg            = 106,
  84.     tmScrollMsg                    = 107,
  85.     tmClearMsg                    = 108,
  86.     tmGetLineMsg                = 109,
  87.     tmPaintMsg                    = 110,
  88.     tmCursorMsg                    = 111,
  89.     tmGetEnvironsMsg            = 112,
  90.     tmDoTermKeyMsg                = 113,
  91.     tmCountTermKeysMsg            = 114,
  92.     tmGetIndTermKeyMsg            = 115
  93. };
  94.  
  95.  
  96. enum {
  97.                                                                 /* messages for validate DefProc    */
  98.     tmValidateMsg                = 0,
  99.     tmDefaultMsg                = 1
  100. };
  101.  
  102.  
  103. enum {
  104.                                                                 /* messages for Setup DefProc    */
  105.     tmSpreflightMsg                = 0,
  106.     tmSsetupMsg                    = 1,
  107.     tmSitemMsg                    = 2,
  108.     tmSfilterMsg                = 3,
  109.     tmScleanupMsg                = 4
  110. };
  111.  
  112.  
  113. enum {
  114.                                                                 /* messages for scripting defProc    */
  115.     tmMgetMsg                    = 0,
  116.     tmMsetMsg                    = 1
  117. };
  118.  
  119.  
  120. enum {
  121.                                                                 /* messages for localization defProc  */
  122.     tmL2English                    = 0,
  123.     tmL2Intl                    = 1
  124. };
  125.  
  126.  
  127. struct TMSearchBlock {
  128.     StringHandle                     theString;
  129.     Rect                             where;
  130.     TMSearchTypes                     searchType;
  131.     TerminalSearchCallBackUPP         callBack;
  132.     short                             refnum;
  133.     struct TMSearchBlock *            next;
  134. };
  135. typedef struct TMSearchBlock            TMSearchBlock;
  136. typedef TMSearchBlock *                    TMSearchBlockPtr;
  137.  
  138. struct TMSetupStruct {
  139.     DialogPtr                         theDialog;
  140.     short                             count;
  141.     Ptr                             theConfig;
  142.     short                             procID;                        /* procID of the tool */
  143. };
  144. typedef struct TMSetupStruct            TMSetupStruct;
  145.  
  146. typedef TMSetupStruct *                    TMSetupPtr;
  147.  
  148. #if PRAGMA_STRUCT_ALIGN
  149.     #pragma options align=reset
  150. #elif PRAGMA_STRUCT_PACKPUSH
  151.     #pragma pack(pop)
  152. #elif PRAGMA_STRUCT_PACK
  153.     #pragma pack()
  154. #endif
  155.  
  156. #ifdef PRAGMA_IMPORT_OFF
  157. #pragma import off
  158. #elif PRAGMA_IMPORT
  159. #pragma import reset
  160. #endif
  161.  
  162. #ifdef __cplusplus
  163. }
  164. #endif
  165.  
  166. #endif /* __TERMINALTOOLS__ */
  167.  
  168.