Revision: 5010
http://skim-app.svn.sourceforge.net/skim-app/?rev=5010&view=rev
Author: hofman
Date: 2008-11-28 18:40:24 +0000 (Fri, 28 Nov 2008)
Log Message:
-----------
Implement a black-screen function in presentation mode, use 'b' key.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-11-28 16:27:25 UTC (rev 5009)
+++ trunk/SKPDFView.m 2008-11-28 18:40:24 UTC (rev 5010)
@@ -525,6 +525,8 @@
- (void)setInteractionMode:(SKInteractionMode)newInteractionMode
screen:(NSScreen *)screen {
if (interactionMode != newInteractionMode) {
+ if (interactionMode == SKPresentationMode && [[self documentView]
isHidden])
+ [[self documentView] setHidden:NO];
interactionMode = newInteractionMode;
if (interactionMode == SKNormalMode)
[self disableNavigation];
@@ -981,6 +983,9 @@
[(SKMainWindowController *)[[self window] windowController]
toggleLeftSidePane:self];
} else if ((eventChar == 'a') && (modifiers == 0)) {
[(SKMainWindowController *)[[self window] windowController]
toggleAutoActualSize:self];
+ } else if ((eventChar == 'b') && (modifiers == 0)) {
+ NSView *documentView = [self documentView];
+ [documentView setHidden:[documentView isHidden] == NO];
} else {
[super keyDown:theEvent];
}
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit