summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-23 10:23:59 +0000
committerritsuka <[email protected]>2014-12-23 10:23:59 +0000
commita66b692e29674de9c444fd54f0493d03b4900abc (patch)
tree1356eec981d0542ad6ca9087794e7cc52a09c664 /macosx/HBPicture.m
parentee10e1fdb417c7f1047406522379c85c47143bfd (diff)
MacGui: move the UI helper methods to new categories. Implement NSCoding in more classes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6643 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture.m')
-rw-r--r--macosx/HBPicture.m68
1 files changed, 0 insertions, 68 deletions
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m
index 63318757c..1719eeb1a 100644
--- a/macosx/HBPicture.m
+++ b/macosx/HBPicture.m
@@ -326,36 +326,6 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
return 0;
}
-#pragma mark - Editable state
-
-- (BOOL)isWidthEditable
-{
- return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO;
-}
-
-- (BOOL)isHeightEditable
-{
- return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO;
-}
-
-- (BOOL)isKeepDisplayAspectEditable
-{
- if (self.anamorphicMode == HB_ANAMORPHIC_STRICT ||
- self.anamorphicMode == HB_ANAMORPHIC_LOOSE)
- {
- return NO;
- }
- else
- {
- return YES;
- }
-}
-
-- (BOOL)isCustomAnamorphicEnabled
-{
- return self.anamorphicMode == HB_ANAMORPHIC_CUSTOM;
-}
-
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key
{
NSSet *retval = nil;
@@ -383,44 +353,6 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
return retval;
}
-- (NSString *)info
-{
- if (!self.title)
- {
- return @"";
- }
-
- NSString *sizeInfo;
- hb_title_t *title = self.title.hb_title;
-
- if (self.anamorphicMode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation
- {
- sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Strict",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
- }
- else if (self.anamorphicMode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic
- {
- sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Loose",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
- }
- else if (self.anamorphicMode == HB_ANAMORPHIC_CUSTOM) // Custom Anamorphic
- {
- sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Custom",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
- }
- else // No Anamorphic
- {
- sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d",
- title->geometry.width, title->geometry.height, self.width, self.height];
- }
-
- return sizeInfo;
-}
-
#pragma mark - Picture Update Logic
/**