home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / NEXTIME.framework / Versions / A / Headers / NTMovieControlView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-22  |  2.1 KB  |  63 lines

  1. /*
  2.  *  NTMovieController.h
  3.  *     Copyright 1995, NeXT Computer, Inc.
  4.  *    
  5.  *
  6.  *    A class to provide a simple set of UI controls for media documents.
  7.  *
  8.  *    25 April 1995 mpaque Created.
  9.  */
  10. #import <AppKit/NSView.h>
  11. #import <Foundation/NSObject.h>
  12. #import <Foundation/NSString.h>
  13. #import "NTMovieDocument.h"
  14.  
  15. extern NSString * NTMovieControlViewIllegalMovieDocumentException;
  16.  
  17. @class NSButton;
  18. @class NSScroller;
  19.  
  20. @interface NTMovieControlView:NSView <NSCoding>
  21. {
  22. @private
  23.     id <NTMovieDocument>        document;
  24.     NSButton *            playButton;
  25.     NSButton *            soundButton;
  26.     id                positionScroller;
  27.         double                minPosition;
  28.         double                maxPosition;
  29.     NTMovieState            state;
  30.     void *                _private;
  31. }
  32.  
  33. - (id)initWithFrame:(NSRect)frame;
  34.  
  35.  
  36. - (id <NTMovieDocument>)movieDocument;
  37. /* Returns the NTControlView's media document. */
  38.  
  39. - (void)setMovieDocument:(id <NTMovieDocument>)anObject;
  40. /* Sets the NTControlView's media document to anObject. Raises NTControlViewIllegalMediaControllerException if the media document specified by anObject doesn't conform to the NTMediaDocument protocol.  When archived, NTControlView will conditionally archive anObject. Settings for the slider range and the current GUI state are picked up from anObject. */
  41.  
  42.  
  43. - (double)currentPosition;
  44. /* Returns the current slider position. */
  45.  
  46. - (double)maxPosition;
  47. /* Returns the maximum permitted slider position. */
  48.  
  49. - (double)minPosition;
  50. /* Returns the minimum permitted slider position. */
  51.  
  52. - (void)setCurrentPosition:(double)position;
  53. /* Set the current slider position.  The position is clipped to be between the minimum and maximum positions.  If a media document is associated with the NTControlView, a setPosition: message is sent to the media document. */
  54.  
  55.  
  56. - (void)setState:(NTMovieState)state;
  57. /* Set the current state of the NTControlView.  The unsupported NTMediaStateFastForward and NTMediaStateFastReverse are mapped into NTMediaStatePlaying.  State changes made through this method propagate to the media document through the document's play:, pause:, and reset: methods.  The user interface is updated to reflect the new state. */
  58.  
  59. - (NTMovieState)state;
  60. /* Report the current state of the NTControlView. */
  61.  
  62. @end
  63.