home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / Multimedia / MPEGPlay2.3 / Source / Controller.h < prev    next >
Encoding:
Text File  |  1993-03-09  |  1.4 KB  |  73 lines

  1.  
  2. #import <objc/Object.h>
  3. #import <sys/param.h>
  4. #import <appkit/graphics.h>
  5. #import "MPEGView.h"
  6.  
  7. #define I_WIDTH        0
  8. #define I_HEIGHT    1
  9. #define I_ASPECT    2
  10. #define I_PICT_RATE    3
  11. #define I_BIT_RATE    4
  12.  
  13. #define STATS_TOTAL        0
  14. #define STATS_FRAMES    1
  15. #define STATS_FPS_RATE    2
  16. #define STATS_ELAPSED    3
  17. #define STATS_ORIG_TIME    4
  18.  
  19. #define FLAG_SYNC    0
  20. #define FLAG_DROP    1
  21.  
  22. @interface Controller:Object
  23. {
  24.     id panel;
  25.     id form;
  26.     id colorSpaceMatrix;
  27.     id zoomMatrix;
  28.     id backingMatrix;
  29.     id buttonMatrix;
  30.     id statsForm;
  31.     id attributesForm;
  32.     id fpsForm;
  33.     id fpsSlider;
  34.     id playAgainMenuItem;
  35.     BOOL drop, sync;
  36.     int backing;
  37.     int zoom;
  38.     int colorSpace;
  39. }
  40.  
  41. /*** Instance methods ***/
  42. - (mpegInfo *)getMPEGFrameSize:(NXSize *)fSize forFile:(const char *)mpegFile;
  43. - showInfo:(mpegInfo *)pInfo;
  44. - setFrameNumber:(int)frame;
  45. - (int)frameNumber;
  46.  
  47. /*** Instance variable access methods ***/
  48. - setColorSpace:sender;
  49. - (int)colorSpace;
  50. - setZoom:sender;
  51. - (int)zoom;
  52. - setBacking:sender;
  53. - setFlag:sender;
  54. - setFPS:sender;
  55.  
  56. /*** Target/Action methods ***/
  57. - openRequest:sender;
  58. - playAgain:sender;
  59. - updateInfoPanels:sender;
  60. - setFPS:sender;
  61.  
  62. /*** Application delegate methods ***/
  63. - appWillInit:sender;
  64. - (BOOL)appAcceptsAnotherFile:sender;
  65. - (int)app:sender openFile:(const char *)filename type:(const char *)aType;
  66.  
  67. /*** Window delegate methods ***/
  68. - windowDidMove:sender;
  69. - windowWillClose:sender;
  70. - windowDidBecomeMain:sender;
  71.  
  72. @end
  73.