summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture+UIAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-08-29 17:32:50 +0200
committerDamiano Galassi <[email protected]>2015-08-29 17:32:50 +0200
commit2d847fea38299aa444bd27b1d9133f10eb9043a5 (patch)
tree57f9a5911fbbc876eb55f5c7ce4676ec32b9f48e /macosx/HBPicture+UIAdditions.m
parent32f442e8da91b8766333abc9ba6b69946701d8db (diff)
MacGui: added a new sourceInfo property to retrieve a string with the picture size info of the source
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r--macosx/HBPicture+UIAdditions.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m
index 06ea316ee..87759ad74 100644
--- a/macosx/HBPicture+UIAdditions.m
+++ b/macosx/HBPicture+UIAdditions.m
@@ -84,6 +84,20 @@
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:@""];