TerminalTools.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:5k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       TerminalTools.h
  3.  
  4.      Contains:   Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology: System 7.5
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1988-2001 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. #ifndef __CONDITIONALMACROS__
  20. #include "ConditionalMacros.h"
  21. #endif
  22. #ifndef __DIALOGS__
  23. #include "Dialogs.h"
  24. #endif
  25. #ifndef __TERMINALS__
  26. #include "Terminals.h"
  27. #endif
  28. #if PRAGMA_ONCE
  29. #pragma once
  30. #endif
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37. #if PRAGMA_STRUCT_ALIGN
  38.     #pragma options align=mac68k
  39. #elif PRAGMA_STRUCT_PACKPUSH
  40.     #pragma pack(push, 2)
  41. #elif PRAGMA_STRUCT_PACK
  42.     #pragma pack(2)
  43. #endif
  44. #if CALL_NOT_IN_CARBON
  45. enum {
  46.     tdefType                    = FOUR_CHAR_CODE('tdef'),
  47.     tvalType                    = FOUR_CHAR_CODE('tval'),
  48.     tsetType                    = FOUR_CHAR_CODE('tset'),
  49.     tlocType                    = FOUR_CHAR_CODE('tloc'),
  50.     tscrType                    = FOUR_CHAR_CODE('tscr'),
  51.     tbndType                    = FOUR_CHAR_CODE('tbnd'),
  52.     tverType                    = FOUR_CHAR_CODE('vers')
  53. };
  54. enum {
  55.                                                                 /* messages */
  56.     tmInitMsg                   = 0,
  57.     tmDisposeMsg                = 1,
  58.     tmSuspendMsg                = 2,
  59.     tmResumeMsg                 = 3,
  60.     tmMenuMsg                   = 4,
  61.     tmEventMsg                  = 5,
  62.     tmActivateMsg               = 6,
  63.     tmDeactivateMsg             = 7,
  64.     tmGetErrorStringMsg         = 8,
  65.     tmIdleMsg                   = 50,
  66.     tmResetMsg                  = 51,
  67.     tmKeyMsg                    = 100,
  68.     tmStreamMsg                 = 101,
  69.     tmResizeMsg                 = 102,
  70.     tmUpdateMsg                 = 103,
  71.     tmClickMsg                  = 104,
  72.     tmGetSelectionMsg           = 105,
  73.     tmSetSelectionMsg           = 106,
  74.     tmScrollMsg                 = 107,
  75.     tmClearMsg                  = 108,
  76.     tmGetLineMsg                = 109,
  77.     tmPaintMsg                  = 110,
  78.     tmCursorMsg                 = 111,
  79.     tmGetEnvironsMsg            = 112,
  80.     tmDoTermKeyMsg              = 113,
  81.     tmCountTermKeysMsg          = 114,
  82.     tmGetIndTermKeyMsg          = 115
  83. };
  84. enum {
  85.                                                                 /* messages for validate DefProc    */
  86.     tmValidateMsg               = 0,
  87.     tmDefaultMsg                = 1
  88. };
  89. enum {
  90.                                                                 /* messages for Setup DefProc    */
  91.     tmSpreflightMsg             = 0,
  92.     tmSsetupMsg                 = 1,
  93.     tmSitemMsg                  = 2,
  94.     tmSfilterMsg                = 3,
  95.     tmScleanupMsg               = 4
  96. };
  97. enum {
  98.                                                                 /* messages for scripting defProc    */
  99.     tmMgetMsg                   = 0,
  100.     tmMsetMsg                   = 1
  101. };
  102. enum {
  103.                                                                 /* messages for localization defProc  */
  104.     tmL2English                 = 0,
  105.     tmL2Intl                    = 1
  106. };
  107. struct TMSearchBlock {
  108.     StringHandle                    theString;
  109.     Rect                            where;
  110.     TMSearchTypes                   searchType;
  111.     TerminalSearchCallBackUPP       callBack;
  112.     short                           refnum;
  113.     struct TMSearchBlock *          next;
  114. };
  115. typedef struct TMSearchBlock            TMSearchBlock;
  116. typedef TMSearchBlock *                 TMSearchBlockPtr;
  117. struct TMSetupStruct {
  118.     DialogPtr                       theDialog;
  119.     short                           count;
  120.     Ptr                             theConfig;
  121.     short                           procID;                     /* procID of the tool */
  122. };
  123. typedef struct TMSetupStruct            TMSetupStruct;
  124. typedef TMSetupStruct *                 TMSetupPtr;
  125. #endif  /* CALL_NOT_IN_CARBON */
  126. #if PRAGMA_STRUCT_ALIGN
  127.     #pragma options align=reset
  128. #elif PRAGMA_STRUCT_PACKPUSH
  129.     #pragma pack(pop)
  130. #elif PRAGMA_STRUCT_PACK
  131.     #pragma pack()
  132. #endif
  133. #ifdef PRAGMA_IMPORT_OFF
  134. #pragma import off
  135. #elif PRAGMA_IMPORT
  136. #pragma import reset
  137. #endif
  138. #ifdef __cplusplus
  139. }
  140. #endif
  141. #endif /* __TERMINALTOOLS__ */