home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Sample Code / DTS Sample Code / MyQuickTimeApp ƒ / MyApplication Shell (2.01).h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-14  |  2.1 KB  |  81 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MyApplication Shell (2.0).h
  3.     
  4.     Contains:    My Application Shell.
  5.  
  6.     Written by:    John Wang
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        03/14/94    JW        Re-Created for Universal Headers.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. #define        topLeft(r)        (((Point *) &(r))[0])
  23. #define        botRight(r)        (((Point *) &(r))[1])
  24.  
  25. #define        kMENUBAR            128
  26. #define        kMENU_APPLEID        128
  27. #define        kMENU_FILEID        129
  28. #define        kMENU_FILENEW        1
  29. #define        kMENU_FILEOPEN        2
  30. #define        kMENU_FILECLOSE        4
  31. #define        kMENU_FILESAVE        5
  32. #define        kMENU_FILESAVEAS    6
  33. #define        kMENU_FILEPAGESETUP    8
  34. #define        kMENU_FILEPRINT        9
  35. #define        kMENU_FILEQUIT        11
  36. #define        kMENU_EDITID        130
  37. #define        kMENU_EDITUNDO        1
  38. #define        kMENU_EDITCUT        3
  39. #define        kMENU_EDITCOPY        4
  40. #define        kMENU_EDITPASTE        5
  41. #define        kMENU_EDITCLEAR        6
  42. #define        kMENU_EDITSELECTALL    8
  43. #define        kMENU_EDITSHOWCLIP    10
  44.  
  45. #define        kALERT_ABOUT        128
  46. #define        kALERT_ERROR        129
  47.  
  48. //    You shouldn't have to change this
  49. #define        kWINDOWDOC        1000
  50. #define        kWINDOWCLIP        1002
  51.  
  52. extern        Str255    gMyAboutTitle;
  53. extern        Str255    gMyAboutDesc;
  54.  
  55. /* ------------------------------------------------------------------------- */
  56.  
  57. void            main(void);
  58.  
  59. void            Initialize(void);
  60. void            DoCommand(long mResult);
  61. void            AdjustMenus(void);
  62. void            Finishup(void);
  63.  
  64. void            ShowClip(void);
  65. void            DrawClip(WindowPtr clipWindow);
  66. void            HideClip(WindowPtr clipWindow);
  67. void            ZoomClip(WindowPtr clipWindow, short windowPart);
  68.  
  69. Boolean            ReportError(Str255 procStr, OSErr err);
  70. void            GetGlobalWindow(WindowPtr theWindow, Rect *windowRect);
  71.  
  72. pascal OSErr    AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  73. pascal OSErr    AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  74. pascal OSErr    AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  75. pascal OSErr    AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  76.  
  77. Boolean            IsMyWindow(WindowPtr theWindow);
  78. void            SetMyWindow(WindowPtr theWindow);
  79. Boolean            IsMyClipWindow(WindowPtr theWindow);
  80. void            SetMyClipWindow(WindowPtr theWindow);
  81.