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/HBVideoController.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/HBVideoController.h')
-rw-r--r-- | macosx/HBVideoController.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/macosx/HBVideoController.h b/macosx/HBVideoController.h new file mode 100644 index 000000000..75a65f292 --- /dev/null +++ b/macosx/HBVideoController.h @@ -0,0 +1,51 @@ +/* HBVideoController.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> +#include "hb.h" + +@class HBController; +@class HBAdvancedController; + +extern NSString *HBVideoEncoderChangedNotification; + +/** + * HBVideoController + * + * Responds to HBContainerChangedNotification and HBTitleChangedNotification notifications. + */ +@interface HBVideoController : NSViewController + +- (void)enableUI:(BOOL)b; + +// Methods to apply the settings to the controller +- (void)applyVideoSettingsFromQueue:(NSDictionary *)queueToApply; +- (void)applySettingsFromPreset:(NSDictionary *)preset; + +// Methods to get back the controller settings +- (void)prepareVideoForQueueFileJob:(NSMutableDictionary *)queueFileJob; +- (void)prepareVideoForJobPreview:(hb_job_t *)job andTitle:(hb_title_t *)title; +- (void)prepareVideoForPreset:(NSMutableDictionary *)preset; + +- (IBAction)x264PresetsChangedDisplayExpandedOptions:(id)sender; + +@property (nonatomic, copy, readwrite) NSString *pictureSettingsField; +@property (nonatomic, copy, readwrite) NSString *pictureFiltersField; + +// Property exposed for the auto name function +@property (nonatomic, readonly) int selectedCodec; +@property (nonatomic, readonly) int selectedQualityType; +@property (nonatomic, readonly) NSString *selectedBitrate; +@property (nonatomic, readonly) NSString *selectedQuality; + +// Property updates when the video size changes +@property (nonatomic, readwrite) NSUInteger fX264PresetsWidthForUnparse; +@property (nonatomic, readwrite) NSUInteger fX264PresetsHeightForUnparse; + +@property (nonatomic, retain, readwrite) HBController *fHBController; +@property (nonatomic, retain, readwrite) HBAdvancedController *fAdvancedOptions; + +@end |