Revision: 5605
http://skim-app.svn.sourceforge.net/skim-app/?rev=5605&view=rev
Author: hofman
Date: 2009-08-31 15:16:37 +0000 (Mon, 31 Aug 2009)
Log Message:
-----------
appy default greeking threshold and anti-alias setting to split PDF and
snapshots
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKMainWindowController_Actions.m
trunk/SKSnapshotWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2009-08-31 14:05:15 UTC (rev 5604)
+++ trunk/SKMainWindowController.m 2009-08-31 15:16:37 UTC (rev 5605)
@@ -2418,8 +2418,10 @@
[snapshotTableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, [self countOfSnapshots])]];
} else if ([key isEqualToString:SKShouldAntiAliasKey]) {
[pdfView setShouldAntiAlias:[[NSUserDefaults standardUserDefaults]
boolForKey:SKShouldAntiAliasKey]];
+ [secondaryPdfView setShouldAntiAlias:[[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey]];
} else if ([key isEqualToString:SKGreekingThresholdKey]) {
[pdfView setGreekingThreshold:[[NSUserDefaults
standardUserDefaults] floatForKey:SKGreekingThresholdKey]];
+ [secondaryPdfView setGreekingThreshold:[[NSUserDefaults
standardUserDefaults] floatForKey:SKGreekingThresholdKey]];
} else if ([key isEqualToString:SKTableFontSizeKey]) {
NSFont *font = [NSFont systemFontOfSize:[[NSUserDefaults
standardUserDefaults] floatForKey:SKTableFontSizeKey]];
[outlineView setFont:font];
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2009-08-31 14:05:15 UTC (rev
5604)
+++ trunk/SKMainWindowController_Actions.m 2009-08-31 15:16:37 UTC (rev
5605)
@@ -1139,6 +1139,8 @@
[secondaryPdfView setSynchronizedPDFView:pdfView];
[secondaryPdfView setBackgroundColor:[pdfView backgroundColor]];
[secondaryPdfView setDisplaysPageBreaks:NO];
+ [secondaryPdfView setShouldAntiAlias:[[NSUserDefaults
standardUserDefaults] boolForKey:SKShouldAntiAliasKey]];
+ [secondaryPdfView setGreekingThreshold:[[NSUserDefaults
standardUserDefaults] floatForKey:SKGreekingThresholdKey]];
[secondaryPdfView setSynchronizeZoom:YES];
[secondaryPdfView setDocument:[pdfView document]];
} else {
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2009-08-31 14:05:15 UTC (rev 5604)
+++ trunk/SKSnapshotWindowController.m 2009-08-31 15:16:37 UTC (rev 5605)
@@ -216,6 +216,8 @@
[pdfView setAutoScales:NO];
[pdfView setDisplaysPageBreaks:NO];
[pdfView setDisplayBox:kPDFDisplayBoxCropBox];
+ [pdfView setShouldAntiAlias:[[NSUserDefaults standardUserDefaults]
floatForKey:SKShouldAntiAliasKey]];
+ [pdfView setGreekingThreshold:[[NSUserDefaults standardUserDefaults]
floatForKey:SKGreekingThresholdKey]];
[pdfView setDocument:pdfDocument];
PDFPage *page = [pdfDocument pageAtIndex:pageNum];
@@ -570,6 +572,10 @@
BOOL keepOnTop = [[NSUserDefaults standardUserDefaults]
boolForKey:SKSnapshotsOnTopKey];
[[self window] setLevel:keepOnTop || forceOnTop ?
NSFloatingWindowLevel : NSNormalWindowLevel];
[[self window] setHidesOnDeactivate:keepOnTop || forceOnTop];
+ } else if ([key isEqualToString:SKShouldAntiAliasKey]) {
+ [pdfView setShouldAntiAlias:[[NSUserDefaults standardUserDefaults]
boolForKey:SKShouldAntiAliasKey]];
+ } else if ([key isEqualToString:SKGreekingThresholdKey]) {
+ [pdfView setGreekingThreshold:[[NSUserDefaults
standardUserDefaults] floatForKey:SKGreekingThresholdKey]];
}
} else {
[super observeValueForKeyPath:keyPath ofObject:object change:change
context:context];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit