home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / TerminalTools.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  3.1 KB  |  148 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT TerminalTools;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __TERMINALTOOLS__}
  27. {$SETC __TERMINALTOOLS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC TerminalToolsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __DIALOGS__}
  35. {$I Dialogs.p}
  36. {$ENDC}
  37. {    Errors.p                                                    }
  38. {        ConditionalMacros.p                                        }
  39. {    Memory.p                                                    }
  40. {        Types.p                                                    }
  41. {        MixedMode.p                                                }
  42. {    Windows.p                                                    }
  43. {        Quickdraw.p                                                }
  44. {            QuickdrawText.p                                        }
  45. {        Events.p                                                }
  46. {            OSUtils.p                                            }
  47. {        Controls.p                                                }
  48. {            Menus.p                                                }
  49. {    TextEdit.p                                                    }
  50.  
  51. {$IFC UNDEFINED __TERMINALS__}
  52. {$I Terminals.p}
  53. {$ENDC}
  54. {    CTBUtilities.p                                                }
  55. {        StandardFile.p                                            }
  56. {            Files.p                                                }
  57. {        AppleTalk.p                                                }
  58. {    Connections.p                                                }
  59.  
  60. {$PUSH}
  61. {$ALIGN MAC68K}
  62. {$LibExport+}
  63.  
  64. CONST
  65.     tdefType                    = 'tdef';
  66.     tvalType                    = 'tval';
  67.     tsetType                    = 'tset';
  68.     tlocType                    = 'tloc';
  69.     tscrType                    = 'tscr';
  70.     tbndType                    = 'tbnd';
  71.     tverType                    = 'vers';
  72. { messages }
  73.     tmInitMsg                    = 0;
  74.     tmDisposeMsg                = 1;
  75.     tmSuspendMsg                = 2;
  76.     tmResumeMsg                    = 3;
  77.     tmMenuMsg                    = 4;
  78.     tmEventMsg                    = 5;
  79.     tmActivateMsg                = 6;
  80.     tmDeactivateMsg                = 7;
  81.     tmGetErrorStringMsg            = 8;
  82.     tmIdleMsg                    = 50;
  83.     tmResetMsg                    = 51;
  84.     tmKeyMsg                    = 100;
  85.     tmStreamMsg                    = 101;
  86.     tmResizeMsg                    = 102;
  87.     tmUpdateMsg                    = 103;
  88.     tmClickMsg                    = 104;
  89.     tmGetSelectionMsg            = 105;
  90.     tmSetSelectionMsg            = 106;
  91.     tmScrollMsg                    = 107;
  92.     tmClearMsg                    = 108;
  93.  
  94.     tmGetLineMsg                = 109;
  95.     tmPaintMsg                    = 110;
  96.     tmCursorMsg                    = 111;
  97.     tmGetEnvironsMsg            = 112;
  98.     tmDoTermKeyMsg                = 113;
  99.     tmCountTermKeysMsg            = 114;
  100.     tmGetIndTermKeyMsg            = 115;
  101. { messages for validate DefProc    }
  102.     tmValidateMsg                = 0;
  103.     tmDefaultMsg                = 1;
  104. { messages for Setup DefProc    }
  105.     tmSpreflightMsg                = 0;
  106.     tmSsetupMsg                    = 1;
  107.     tmSitemMsg                    = 2;
  108.     tmSfilterMsg                = 3;
  109.     tmScleanupMsg                = 4;
  110. { messages for scripting defProc    }
  111.     tmMgetMsg                    = 0;
  112.     tmMsetMsg                    = 1;
  113. { messages for localization defProc  }
  114.     tmL2English                    = 0;
  115.     tmL2Intl                    = 1;
  116.  
  117.     
  118. TYPE
  119.     TMSearchBlockPtr = ^TMSearchBlock;
  120.  
  121.     TMSearchBlock = RECORD
  122.         theString:                StringHandle;
  123.         where:                    Rect;
  124.         searchType:                TMSearchTypes;
  125.         callBack:                TerminalSearchCallBackUPP;
  126.         refnum:                    INTEGER;
  127.         next:                    TMSearchBlockPtr;
  128.     END;
  129.     TMSetupPtr = ^TMSetupStruct;
  130.  
  131.     TMSetupStruct = RECORD
  132.         theDialog:                DialogPtr;
  133.         count:                    INTEGER;
  134.         theConfig:                Ptr;
  135.         procID:                    INTEGER;                                { procID of the tool }
  136.     END;
  137.  
  138. {$ALIGN RESET}
  139. {$POP}
  140.  
  141. {$SETC UsingIncludes := TerminalToolsIncludes}
  142.  
  143. {$ENDC} {__TERMINALTOOLS__}
  144.  
  145. {$IFC NOT UsingIncludes}
  146.  END.
  147. {$ENDC}
  148.