diff options
author | ritsuka <[email protected]> | 2014-07-15 18:30:51 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-07-15 18:30:51 +0000 |
commit | 31283b442713147dc5edb5135cb6dbcbb95635e8 (patch) | |
tree | a779647bf655c11b4ba5d1c0a3839202cf17a2a4 /macosx/HBAudioController.h | |
parent | 076704ec10c392851673856eeaf071eb79f90075 (diff) |
MacGUI: Refactored the controller code for the video/audio/subtitles/chapters view:
Added a xib file and a NSViewController subclass for each tab of the main HandBrake window.
Each view controller now to responds to the HBContainerChangedNotification and HBTitleChangedNotification notifications instead of using a custom way to notify changes.
Converted the modified .xibs to the Xcode 5.1 format.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6231 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioController.h')
-rw-r--r-- | macosx/HBAudioController.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/macosx/HBAudioController.h b/macosx/HBAudioController.h index c35f5dac9..959bdc63a 100644 --- a/macosx/HBAudioController.h +++ b/macosx/HBAudioController.h @@ -19,29 +19,35 @@ extern NSString *HBMixdownChangedNotification; @class HBAudio; -@interface HBAudioController : NSObject - -{ - id myController; - NSMutableArray * audioArray; // the configured audio information - NSArray * masterTrackArray; // the master list of audio tracks from the title - NSDictionary * noneTrack; // this represents no audio track selection - NSNumber * videoContainerTag; // initially is the default HB_MUX_MP4 -} +/** + * HBAudioController + * + * Responds to HBContainerChangedNotification and HBTitleChangedNotification notifications. + */ +@interface HBAudioController : NSViewController @property (nonatomic, readonly, retain) NSArray *masterTrackArray; @property (nonatomic, readonly) NSDictionary *noneTrack; -@property (nonatomic, retain) NSNumber *videoContainerTag; +@property(nonatomic, readwrite) BOOL allowAACPassCheck; +@property(nonatomic, readwrite) BOOL allowAC3PassCheck; +@property(nonatomic, readwrite) BOOL allowDTSHDPassCheck; +@property(nonatomic, readwrite) BOOL allowDTSPassCheck; +@property(nonatomic, readwrite) BOOL allowMP3PassCheck; + +@property(nonatomic, readwrite, assign) NSString *audioEncoderFallback; +@property(nonatomic, readwrite) NSInteger audioEncoderFallbackTag; + +- (void) enableUI: (BOOL) b; - (void) setHBController: (id) aController; + - (void) prepareAudioForQueueFileJob: (NSMutableDictionary *) aDict; -- (void) prepareAudioForJob: (hb_job_t *) aJob; +- (void) prepareAudioForJobPreview: (hb_job_t *) aJob; - (void) prepareAudioForPreset: (NSMutableArray *) anArray; - (void) addTracksFromQueue: (NSMutableDictionary *) aQueue; - (void) addTracksFromPreset: (NSMutableDictionary *) aPreset; -- (void) addAllTracksFromPreset: (NSMutableDictionary *) aPreset; + - (BOOL) anyCodecMatches: (int) aCodecValue; -- (void) addNewAudioTrack; - (void) settingTrackToNone: (HBAudio *) newNoneTrack; - (void) switchingTrackFromNone: (HBAudio *) noLongerNoneTrack; |