diff options
author | ritsuka <[email protected]> | 2015-01-13 08:08:04 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-13 08:08:04 +0000 |
commit | 677231f07d765e79afdc76e7741bb9e03bde1142 (patch) | |
tree | b98775bb09649710c9b80b6370c8d261ce778cf9 /macosx/HBAudioController.h | |
parent | 40edf3c9bce9f91fa3b5d8f422ad5df1e8ad3eb6 (diff) |
MacGui: Move the audio/subtitles selection logic out of the view controllers. Now it's possible to create a HBJob and apply a preset to without the UI classes help.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6741 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioController.h')
-rw-r--r-- | macosx/HBAudioController.h | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/macosx/HBAudioController.h b/macosx/HBAudioController.h index 9088e5b92..2dcb94427 100644 --- a/macosx/HBAudioController.h +++ b/macosx/HBAudioController.h @@ -1,40 +1,18 @@ -// -// HBAudioController.h -// HandBrake -// -// Created on 2010-08-24. -// +/* HBAudioController.h + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ #import <Cocoa/Cocoa.h> -@class HBJob; -@class HBAudioTrack; +@class HBAudio; /** * HBAudioController - * - * Responds to HBContainerChangedNotification. */ @interface HBAudioController : NSViewController -@property (nonatomic, readonly, retain) NSArray *masterTrackArray; -@property (nonatomic, readonly) NSDictionary *noneTrack; - -@property (nonatomic, readwrite, assign) HBJob *job; - -- (void) applySettingsFromPreset:(NSDictionary *)preset; - -- (BOOL) anyCodecMatches: (int) aCodecValue; -- (void) settingTrackToNone: (HBAudioTrack *) newNoneTrack; -- (void) switchingTrackFromNone: (HBAudioTrack *) noLongerNoneTrack; - -@end - -@interface HBAudioController (KVC) - -- (NSUInteger) countOfAudioArray; -- (HBAudioTrack *) objectInAudioArrayAtIndex: (NSUInteger) index; -- (void) insertObject: (HBAudioTrack *) audioObject inAudioArrayAtIndex: (NSUInteger) index; -- (void) removeObjectFromAudioArrayAtIndex: (NSUInteger) index; +@property (nonatomic, readwrite, assign) HBAudio *audio; @end |