home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  3.3 KB  |  151 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __TERMINALTOOLS__
  21. #define __TERMINALTOOLS__
  22.  
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Memory.h>                                            */
  30. /*        #include <Types.h>                                        */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <Windows.h>                                        */
  33. /*        #include <Quickdraw.h>                                    */
  34. /*            #include <QuickdrawText.h>                            */
  35. /*        #include <Events.h>                                        */
  36. /*            #include <OSUtils.h>                                */
  37. /*        #include <Controls.h>                                    */
  38. /*            #include <Menus.h>                                    */
  39. /*    #include <TextEdit.h>                                        */
  40.  
  41. #ifndef __TERMINALS__
  42. #include <Terminals.h>
  43. #endif
  44. /*    #include <CTBUtilities.h>                                    */
  45. /*        #include <StandardFile.h>                                */
  46. /*            #include <Files.h>                                    */
  47. /*        #include <AppleTalk.h>                                    */
  48. /*    #include <Connections.h>                                    */
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. #if PRAGMA_ALIGN_SUPPORTED
  55. #pragma options align=mac68k
  56. #endif
  57.  
  58. #if PRAGMA_IMPORT_SUPPORTED
  59. #pragma import on
  60. #endif
  61.  
  62.  
  63. enum {
  64.     tdefType                    = 'tdef',
  65.     tvalType                    = 'tval',
  66.     tsetType                    = 'tset',
  67.     tlocType                    = 'tloc',
  68.     tscrType                    = 'tscr',
  69.     tbndType                    = 'tbnd',
  70.     tverType                    = 'vers',
  71. /* messages */
  72.     tmInitMsg                    = 0,
  73.     tmDisposeMsg                = 1,
  74.     tmSuspendMsg                = 2,
  75.     tmResumeMsg                    = 3,
  76.     tmMenuMsg                    = 4,
  77.     tmEventMsg                    = 5,
  78.     tmActivateMsg                = 6,
  79.     tmDeactivateMsg                = 7,
  80.     tmGetErrorStringMsg            = 8,
  81.     tmIdleMsg                    = 50,
  82.     tmResetMsg                    = 51,
  83.     tmKeyMsg                    = 100,
  84.     tmStreamMsg                    = 101,
  85.     tmResizeMsg                    = 102,
  86.     tmUpdateMsg                    = 103,
  87.     tmClickMsg                    = 104,
  88.     tmGetSelectionMsg            = 105,
  89.     tmSetSelectionMsg            = 106,
  90.     tmScrollMsg                    = 107,
  91.     tmClearMsg                    = 108
  92. };
  93.  
  94. enum {
  95.     tmGetLineMsg                = 109,
  96.     tmPaintMsg                    = 110,
  97.     tmCursorMsg                    = 111,
  98.     tmGetEnvironsMsg            = 112,
  99.     tmDoTermKeyMsg                = 113,
  100.     tmCountTermKeysMsg            = 114,
  101.     tmGetIndTermKeyMsg            = 115,
  102. /* messages for validate DefProc    */
  103.     tmValidateMsg                = 0,
  104.     tmDefaultMsg                = 1,
  105. /* messages for Setup DefProc    */
  106.     tmSpreflightMsg                = 0,
  107.     tmSsetupMsg                    = 1,
  108.     tmSitemMsg                    = 2,
  109.     tmSfilterMsg                = 3,
  110.     tmScleanupMsg                = 4,
  111. /* messages for scripting defProc    */
  112.     tmMgetMsg                    = 0,
  113.     tmMsetMsg                    = 1,
  114. /* messages for localization defProc  */
  115.     tmL2English                    = 0,
  116.     tmL2Intl                    = 1
  117. };
  118.  
  119. typedef struct TMSearchBlock TMSearchBlock, *TMSearchBlockPtr;
  120.  
  121. struct TMSearchBlock {
  122.     StringHandle                    theString;
  123.     Rect                            where;
  124.     TMSearchTypes                    searchType;
  125.     TerminalSearchCallBackUPP        callBack;
  126.     short                            refnum;
  127.     TMSearchBlockPtr                next;
  128. };
  129. typedef struct TMSetupStruct TMSetupStruct, *TMSetupPtr;
  130.  
  131. struct TMSetupStruct {
  132.     DialogPtr                        theDialog;
  133.     short                            count;
  134.     Ptr                                theConfig;
  135.     short                            procID;                        /* procID of the tool */
  136. };
  137.  
  138. #if PRAGMA_IMPORT_SUPPORTED
  139. #pragma import off
  140. #endif
  141.  
  142. #if PRAGMA_ALIGN_SUPPORTED
  143. #pragma options align=reset
  144. #endif
  145.  
  146. #ifdef __cplusplus
  147. }
  148. #endif
  149.  
  150. #endif /* __TERMINALTOOLS__ */
  151.