summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture+UIAdditions.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-27 10:46:04 +0000
committerritsuka <[email protected]>2014-12-27 10:46:04 +0000
commitdf8b2ff3e109699e3dadd88404911f8dfc7b210a (patch)
tree8489fee4edaf57adf55f69d0c0d28f61a5757057 /macosx/HBPicture+UIAdditions.m
parent8df584534c0c39f5c2f298d8ba480cc906743bbf (diff)
MacGui: change the queue to work with serialized HBJob objects, remove the NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r--macosx/HBPicture+UIAdditions.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m
index 04a4a5afd..e07e30667 100644
--- a/macosx/HBPicture+UIAdditions.m
+++ b/macosx/HBPicture+UIAdditions.m
@@ -86,4 +86,23 @@
return sizeInfo;
}
+- (NSString *)summary
+{
+ NSMutableString *summary = [NSMutableString stringWithString:@""];
+ [summary appendString:self.info];
+
+ if (self.anamorphicMode != HB_ANAMORPHIC_STRICT)
+ {
+ // anamorphic is not Strict, show the modulus
+ [summary appendFormat:@", Modulus: %d", self.modulus];
+ }
+
+ [summary appendFormat:@", Crop: %s %d/%d/%d/%d",
+ self.autocrop ? "Auto" : "Custom",
+ self.cropTop, self.cropBottom,
+ self.cropLeft, self.cropRight];
+
+ return [[summary copy] autorelease];
+}
+
@end