diff options
author | ritsuka <[email protected]> | 2014-12-20 17:38:25 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-20 17:38:25 +0000 |
commit | 01c4d09efdf8723d77b6f749b21a3da97f8a44c6 (patch) | |
tree | f5efe1071c57c41337299d70e5f9593e0461ae83 /macosx/HBPicture.h | |
parent | 35ee296426789c3ab55abd69d86509ae36ce6f81 (diff) |
MacGui: implement HBPicture.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6626 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture.h')
-rw-r--r-- | macosx/HBPicture.h | 78 |
1 files changed, 54 insertions, 24 deletions
diff --git a/macosx/HBPicture.h b/macosx/HBPicture.h index beb045768..ee35f75eb 100644 --- a/macosx/HBPicture.h +++ b/macosx/HBPicture.h @@ -1,39 +1,69 @@ -// -// HBPicture.h -// HandBrake -// -// Created by Damiano Galassi on 12/08/14. -// -// +/* HBPicture.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 <Foundation/Foundation.h> +@class HBTitle; + +extern NSString * const HBPictureChangedNotification; + +/** + * HBPicture + */ @interface HBPicture : NSObject +- (instancetype)initWithTitle:(HBTitle *)title; + +- (void)applyPictureSettingsFromQueue:(NSDictionary *)queueToApply; +- (void)preparePictureForQueueFileJob:(NSMutableDictionary *)queueFileJob; + +- (void)preparePictureForPreset:(NSMutableDictionary *)preset; - (void)applySettingsFromPreset:(NSDictionary *)preset; @property (nonatomic, readwrite) int width; @property (nonatomic, readwrite) int height; -@property (nonatomic, readwrite) BOOL autocrop; -@property (nonatomic, readwrite) int *crop; - +@property (nonatomic, readwrite) int keepDisplayAspect; +@property (nonatomic, readwrite) int anamorphicMode; @property (nonatomic, readwrite) int modulus; -/* - anamorphic { - mode - keepDisplayAspect - par { - num - den - } - dar { - num - den - } - } - modulus +/** + * Custom anamorphic settings + */ +@property (nonatomic, readwrite) int displayWidth; +@property (nonatomic, readwrite) int parWidth; +@property (nonatomic, readwrite) int parHeight; + +/** + * Crop settings */ +@property (nonatomic, readwrite) BOOL autocrop; +@property (nonatomic, readwrite) int cropTop; +@property (nonatomic, readwrite) int cropBottom; +@property (nonatomic, readwrite) int cropLeft; +@property (nonatomic, readwrite) int cropRight; + +/** + * UI enabled bindings + */ +@property (nonatomic, readonly) NSString *info; + +@property (nonatomic, readonly) int maxWidth; +@property (nonatomic, readonly) int maxHeight; + +@property (nonatomic, readonly) int maxVerticalCrop; +@property (nonatomic, readonly) int maxHorizontalCrop; + +@property (nonatomic, readonly, getter=isWidthEditable) BOOL widthEditable; +@property (nonatomic, readonly, getter=isHeightEditable) BOOL heightEditable; + +@property (nonatomic, readonly, getter=isKeepDisplayAspect) BOOL keepDisplayAspectEditable; +@property (nonatomic, readonly, getter=isCustomAnamorphicEnabled) BOOL customAnamorphicEnabled; + +@property (nonatomic, readonly) HBTitle *title; + @end |