home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Interfaces / Universal Interfaces / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-30  |  3.1 KB  |  144 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TerminalTools.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __TERMINALTOOLS__
  13. #define __TERMINALTOOLS__
  14.  
  15. #ifndef __DIALOGS__
  16. #include <Dialogs.h>
  17. /*    #include <Windows.h>                                        */
  18. /*        #include <Quickdraw.h>                                    */
  19. /*            #include <Types.h>                                    */
  20. /*                #include <ConditionalMacros.h>                    */
  21. /*                #include <MixedMode.h>                            */
  22. /*                    #include <Traps.h>                            */
  23. /*            #include <QuickdrawText.h>                            */
  24. /*                #include <IntlResources.h>                        */
  25. /*        #include <Events.h>                                        */
  26. /*            #include <OSUtils.h>                                */
  27. /*        #include <Controls.h>                                    */
  28. /*            #include <Menus.h>                                    */
  29. /*    #include <TextEdit.h>                                        */
  30. #endif
  31.  
  32. #ifndef __TERMINALS__
  33. #include <Terminals.h>
  34. /*    #include <CTBUtilities.h>                                    */
  35. /*        #include <Memory.h>                                        */
  36. /*        #include <StandardFile.h>                                */
  37. /*            #include <Files.h>                                    */
  38. /*                #include <SegLoad.h>                            */
  39. /*        #include <AppleTalk.h>                                    */
  40. /*    #include <Connections.h>                                    */
  41. #endif
  42.  
  43. #define tdefType 'tdef'
  44.  
  45. #define tvalType 'tval'
  46.  
  47. #define tsetType 'tset'
  48.  
  49. #define tlocType 'tloc'
  50.  
  51. #define tscrType 'tscr'
  52.  
  53. #define tbndType 'tbnd'
  54.  
  55. #define tverType 'vers'
  56.  
  57. enum  {
  58. /* messages */
  59.     tmInitMsg                    = 0,
  60.     tmDisposeMsg                = 1,
  61.     tmSuspendMsg                = 2,
  62.     tmResumeMsg                    = 3,
  63.     tmMenuMsg                    = 4,
  64.     tmEventMsg                    = 5,
  65.     tmActivateMsg                = 6,
  66.     tmDeactivateMsg                = 7,
  67.     tmGetErrorStringMsg            = 8,
  68.     tmIdleMsg                    = 50,
  69.     tmResetMsg                    = 51,
  70.     tmKeyMsg                    = 100,
  71.     tmStreamMsg                    = 101,
  72.     tmResizeMsg                    = 102,
  73.     tmUpdateMsg                    = 103,
  74.     tmClickMsg                    = 104,
  75.     tmGetSelectionMsg            = 105,
  76.     tmSetSelectionMsg            = 106,
  77.     tmScrollMsg                    = 107,
  78.     tmClearMsg                    = 108
  79. };
  80.  
  81. enum  {
  82.     tmGetLineMsg                = 109,
  83.     tmPaintMsg                    = 110,
  84.     tmCursorMsg                    = 111,
  85.     tmGetEnvironsMsg            = 112,
  86.     tmDoTermKeyMsg                = 113,
  87.     tmCountTermKeysMsg            = 114,
  88.     tmGetIndTermKeyMsg            = 115,
  89. /* messages for validate DefProc    */
  90.     tmValidateMsg                = 0,
  91.     tmDefaultMsg                = 1,
  92. /* messages for Setup DefProc    */
  93.     tmSpreflightMsg                = 0,
  94.     tmSsetupMsg                    = 1,
  95.     tmSitemMsg                    = 2,
  96.     tmSfilterMsg                = 3,
  97.     tmScleanupMsg                = 4,
  98. /* messages for scripting defProc    */
  99.     tmMgetMsg                    = 0,
  100.     tmMsetMsg                    = 1,
  101. /* messages for localization defProc  */
  102.     tmL2English                    = 0,
  103.     tmL2Intl                    = 1
  104. };
  105.  
  106. #if defined(powerc) || defined (__powerc)
  107. #pragma options align=mac68k
  108. #endif
  109. struct TMSearchBlock {
  110.     StringHandle                theString;
  111.     Rect                        where;
  112.     TMSearchTypes                searchType;
  113.     TerminalSearchCallBackUPP    callBack;
  114.     short                        refnum;
  115.     struct TMSearchBlock        *next;
  116. };
  117. #if defined(powerc) || defined(__powerc)
  118. #pragma options align=reset
  119. #endif
  120.  
  121. typedef struct TMSearchBlock TMSearchBlock;
  122.  
  123. typedef TMSearchBlock *TMSearchBlockPtr;
  124.  
  125. #if defined(powerc) || defined (__powerc)
  126. #pragma options align=mac68k
  127. #endif
  128. struct TMSetupStruct {
  129.     DialogPtr                    theDialog;
  130.     short                        count;
  131.     Ptr                            theConfig;
  132.     short                        procID;                            /* procID of the tool */
  133. };
  134. #if defined(powerc) || defined(__powerc)
  135. #pragma options align=reset
  136. #endif
  137.  
  138. typedef struct TMSetupStruct TMSetupStruct;
  139.  
  140. typedef TMSetupStruct *TMSetupPtr;
  141.  
  142. #endif
  143.  
  144.