mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:20:49 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
221 lines
3.3 KiB
Objective-C
221 lines
3.3 KiB
Objective-C
/** <title>NSMovie</title>
|
|
|
|
<abstract>Encapsulate a Quicktime movie</abstract>
|
|
|
|
Copyright <copy>(C) 2003 Free Software Foundation, Inc.</copy>
|
|
|
|
Author: Fred Kiefer <FredKiefer@gmx.de>
|
|
Date: March 2003
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; see the file COPYING.LIB.
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#import <Foundation/NSArray.h>
|
|
#import <Foundation/NSData.h>
|
|
#import <Foundation/NSURL.h>
|
|
#import "AppKit/NSMovie.h"
|
|
#import "AppKit/NSMovieView.h"
|
|
#import "AppKit/NSPasteboard.h"
|
|
|
|
@implementation NSMovieView
|
|
|
|
- (void) setMovie: (NSMovie*)movie
|
|
{
|
|
ASSIGN(_movie, movie);
|
|
}
|
|
|
|
- (NSMovie*) movie
|
|
{
|
|
return _movie;
|
|
}
|
|
|
|
- (void) start: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) stop: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (BOOL) isPlaying
|
|
{
|
|
//FIXME
|
|
return NO;
|
|
}
|
|
|
|
- (void) gotoPosterFrame: (id)sender;
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) gotoBeginning: (id)sender;
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) gotoEnd: (id)sender;
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) stepForward: (id)sender;
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) stepBack: (id)sender;
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) setRate: (float)rate;
|
|
{
|
|
_rate = rate;
|
|
}
|
|
|
|
- (float) rate
|
|
{
|
|
return _rate;
|
|
}
|
|
|
|
- (void) setVolume: (float)volume
|
|
{
|
|
_volume = volume;
|
|
}
|
|
|
|
- (float) volume
|
|
{
|
|
return _volume;
|
|
}
|
|
|
|
- (void) setMuted: (BOOL)mute
|
|
{
|
|
_flags.muted = mute;
|
|
}
|
|
|
|
- (BOOL) isMuted
|
|
{
|
|
return _flags.muted;
|
|
}
|
|
|
|
- (void) setLoopMode: (NSQTMovieLoopMode)mode
|
|
{
|
|
_flags.loopMode = mode;
|
|
}
|
|
|
|
- (NSQTMovieLoopMode) loopMode
|
|
{
|
|
return _flags.loopMode;
|
|
}
|
|
|
|
- (void) setPlaysSelectionOnly: (BOOL)flag
|
|
{
|
|
_flags.plays_selection_only = flag;
|
|
}
|
|
|
|
- (BOOL) playsSelectionOnly
|
|
{
|
|
return _flags.plays_selection_only;
|
|
}
|
|
|
|
- (void) setPlaysEveryFrame: (BOOL)flag
|
|
{
|
|
_flags.plays_every_frame = flag;
|
|
}
|
|
|
|
- (BOOL) playsEveryFrame
|
|
{
|
|
return _flags.plays_every_frame;
|
|
}
|
|
|
|
- (void) showController: (BOOL)show adjustingSize: (BOOL)adjustSize
|
|
{
|
|
//FIXME
|
|
_flags.is_controller_visible = show;
|
|
}
|
|
|
|
- (void*) movieController
|
|
{
|
|
//FIXME
|
|
return NULL;
|
|
}
|
|
|
|
- (BOOL) isControllerVisible
|
|
{
|
|
return _flags.is_controller_visible;
|
|
}
|
|
|
|
- (NSRect) movieRect
|
|
{
|
|
return [self bounds];
|
|
}
|
|
|
|
- (void) resizeWithMagnification: (float)magnification;
|
|
{
|
|
//FIXME
|
|
}
|
|
- (NSSize) sizeForMagnification: (float)magnification;
|
|
{
|
|
//FIXME
|
|
return NSMakeSize(0, 0);
|
|
}
|
|
|
|
- (void) setEditable: (BOOL)editable;
|
|
{
|
|
_flags.editable = editable;
|
|
}
|
|
|
|
- (BOOL) isEditable
|
|
{
|
|
return _flags.editable;
|
|
}
|
|
|
|
- (void) cut: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) copy: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) paste: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) clear: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) undo: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
- (void) selectAll: (id)sender
|
|
{
|
|
//FIXME
|
|
}
|
|
|
|
@end
|