Revision: 3938
http://skim-app.svn.sourceforge.net/skim-app/?rev=3938&view=rev
Author: hofman
Date: 2008-05-30 06:43:10 -0700 (Fri, 30 May 2008)
Log Message:
-----------
display location of selection in status bar
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-05-30 12:14:32 UTC (rev 3937)
+++ trunk/SKMainWindowController.m 2008-05-30 13:43:10 UTC (rev 3938)
@@ -662,7 +662,7 @@
if (NSEqualRects(selRect, NSZeroRect)) {
float magnification = [pdfView currentMagnification];
if (magnification > 0.0001)
- message = [NSString stringWithFormat:@"%.2f x", magnification];
+ message = [NSString stringWithFormat:@"%.2f %C", magnification,
0xD7];
else
message = @"";
} else {
@@ -670,9 +670,9 @@
BOOL useMetric = [[[NSLocale currentLocale]
objectForKey:NSLocaleUsesMetricSystem] boolValue];
NSString *units = useMetric ? @"cm" : @"in";
float factor = useMetric ? 0.035277778 : 0.013888889;
- message = [NSString stringWithFormat:@"%.2f x %.2f %@",
NSWidth(selRect) * factor, NSHeight(selRect) * factor, units];
+ message = [NSString stringWithFormat:@"%.2f %C %.2f @ (%.2f, %.2f)
%@", NSWidth(selRect) * factor, 0xD7, NSHeight(selRect) * factor,
NSMinX(selRect) * factor, NSMinY(selRect) * factor, units];
} else {
- message = [NSString stringWithFormat:@"%i x %i pt",
(int)NSWidth(selRect), (int)NSHeight(selRect)];
+ message = [NSString stringWithFormat:@"%i %C %i @ (%i, %i) pt",
(int)NSWidth(selRect), 0xD7, (int)NSHeight(selRect), (int)NSMinX(selRect),
(int)NSMinY(selRect)];
}
}
[statusBar setRightStringValue:message];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit