summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture+UIAdditions.m
diff options
context:
space:
mode:
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