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.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-14  |  1.6 KB  |  62 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        MyApplication.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. //    Set the following according to your application's needs
  23. #define        kNEWDOCATSTARTUP    1    //    set to 1 if MyNew called at startup.  0 is not called.
  24. #define        kMYEVENTDEF            2    //    2 is per window.  1 is once per eventloop.  0 is never.
  25. #define        kMYIDLEDEF            2    //    2 is per window.  1 is once per eventloop.  0 is never.
  26.  
  27. //    Menus - Add any custom menus here starting from NEXTID (Use ResEdit on .rsrc file).
  28. #define        kMENU_NEXTID        160
  29. #define        kMENU_NEXT1stITEM    1
  30.  
  31. //    Alert Resources - Add Alerts starting from ALERT_NEXT
  32. #define        kALERT_NEXT            160
  33.  
  34. /* ------------------------------------------------------------------------- */
  35.  
  36. OSErr        MyInitialize(void);
  37. Boolean        MyEvent(WindowPtr theWindow, EventRecord *myEvent);
  38. void        MyIdle(WindowPtr theWindow);
  39. OSErr        MyDoCommand(short theMenu, short theItem);
  40. void        MyDoKeyDown(EventRecord *myEvent);
  41. void        MyDraw(WindowPtr theWindow);
  42. void        MyFinishup(void);
  43. long        MyYieldTime(long message);
  44. void        MyInContent(WindowPtr foundWindow, Point where);
  45. void        MyZoomWindow(WindowPtr foundWindow, short windowPart);
  46. void        MyAdjustMenus(void);
  47.  
  48. void        MyNew(void);
  49. void        MyOpen(FSSpec *theFSS);
  50. void        MyClose(void);
  51. void        MySave(void);
  52. void        MySaveAs(void);
  53. void        MyPageSetup(void);
  54. void        MyPrint(void);
  55.  
  56. void        MyUndo(void);
  57. void        MyCut(void);
  58. void        MyCopy(void);
  59. void        MyPaste(void);
  60. void        MyClear(void);
  61. void        MySelectAll(void);
  62.