From dc5386586cc0592275a11922e9869d81bec5b5ca Mon Sep 17 00:00:00 2001 From: ritsuka Date: Thu, 6 Aug 2015 09:56:13 +0000 Subject: MacGui: revert part of the previous commit that should have not been committed git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7394 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/HBPictureViewController.xib | 245 +++++++++++------------ macosx/HBOutputFileWriter.m | 2 +- macosx/HBPicture+UIAdditions.h | 1 - macosx/HBPicture+UIAdditions.m | 14 -- macosx/HBPicture.h | 1 - macosx/HBPicture.m | 5 - 6 files changed, 116 insertions(+), 152 deletions(-) diff --git a/macosx/English.lproj/HBPictureViewController.xib b/macosx/English.lproj/HBPictureViewController.xib index 48861a0b7..3a36b3ca0 100644 --- a/macosx/English.lproj/HBPictureViewController.xib +++ b/macosx/English.lproj/HBPictureViewController.xib @@ -1,5 +1,5 @@ - + @@ -19,8 +19,25 @@ + + + + + + + + + + + + + NSNegateBoolean + + + + - + @@ -30,6 +47,12 @@ + + + + NSNegateBoolean + + @@ -40,28 +63,34 @@ - - + + - - + + - + + NSNegateBoolean - - + + + + NSNegateBoolean + + + - + @@ -73,6 +102,11 @@ + + + NSNegateBoolean + + NSNegateBoolean @@ -83,17 +117,41 @@ - + + + + + + + + + + + + NSNegateBoolean + + + + + + - + + + + + NSNegateBoolean + + + - + @@ -116,7 +174,7 @@ - + @@ -142,7 +200,7 @@ - + @@ -167,48 +225,50 @@ - - - - - - - - - - - - + + - + - - - - - - + + + + + + + + + NSIsNotNil + + + + + + + + + - + - - + + - + - + @@ -234,7 +294,7 @@ - + @@ -244,37 +304,17 @@ - - - - - - - - - - - + - - - - - - - - - - - + - + @@ -300,7 +340,7 @@ - + @@ -348,7 +388,7 @@ - + @@ -374,7 +414,7 @@ - + @@ -411,7 +451,7 @@ - + @@ -444,7 +484,7 @@ - + @@ -477,7 +517,7 @@ - + @@ -503,7 +543,7 @@ - + @@ -536,7 +576,7 @@ - + @@ -562,7 +602,7 @@ - + @@ -572,7 +612,7 @@ - + @@ -1125,64 +1165,9 @@ - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSIsNotNil - - - - - - - - + diff --git a/macosx/HBOutputFileWriter.m b/macosx/HBOutputFileWriter.m index 2785cd319..fffe9478b 100644 --- a/macosx/HBOutputFileWriter.m +++ b/macosx/HBOutputFileWriter.m @@ -37,7 +37,7 @@ return nil; } - f = freopen(url.path.fileSystemRepresentation, "a", f); + f = freopen(NULL, "a", f); if (!f) { return nil; diff --git a/macosx/HBPicture+UIAdditions.h b/macosx/HBPicture+UIAdditions.h index fffe3d9b7..e19d627d2 100644 --- a/macosx/HBPicture+UIAdditions.h +++ b/macosx/HBPicture+UIAdditions.h @@ -13,7 +13,6 @@ * UI enabled bindings */ @property (nonatomic, readonly) NSString *info; -@property (nonatomic, readonly) NSString *sourceInfo; @property (nonatomic, readonly) NSString *summary; @property (nonatomic, readonly) int maxWidth; diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m index 87759ad74..06ea316ee 100644 --- a/macosx/HBPicture+UIAdditions.m +++ b/macosx/HBPicture+UIAdditions.m @@ -84,20 +84,6 @@ return sizeInfo; } -- (NSString *)sourceInfo -{ - NSString *sizeInfo = @""; - - sizeInfo = [NSString stringWithFormat:@"%d x %d", self.sourceWidth, self.sourceHeight]; - - if (self.sourceWidth != self.sourceDisplayWidth) - { - sizeInfo = [NSString stringWithFormat:@"%d x %d, Anamorphic: %d x %d", self.sourceWidth, self.sourceHeight, self.sourceDisplayWidth, self.sourceHeight]; - } - - return sizeInfo; -} - - (NSString *)summary { NSMutableString *summary = [NSMutableString stringWithString:@""]; diff --git a/macosx/HBPicture.h b/macosx/HBPicture.h index c4773e822..a717a4c69 100644 --- a/macosx/HBPicture.h +++ b/macosx/HBPicture.h @@ -48,7 +48,6 @@ extern NSString * const HBPictureChangedNotification; */ @property (nonatomic, readonly) int sourceWidth; @property (nonatomic, readonly) int sourceHeight; -@property (nonatomic, readonly) int sourceDisplayWidth; @end diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m index 099a4c77a..43c1d7979 100644 --- a/macosx/HBPicture.m +++ b/macosx/HBPicture.m @@ -345,11 +345,6 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification"; return self.sourceWidth / 2 - 2; } -- (int)sourceDisplayWidth -{ - return (int) (self.sourceWidth * self.sourceParNum / (double)self.sourceParDen); -} - + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { NSSet *retval = nil; -- cgit v1.2.3