Revision: 4705
http://skim-app.svn.sourceforge.net/skim-app/?rev=4705&view=rev
Author: hofman
Date: 2008-09-28 18:06:41 +0000 (Sun, 28 Sep 2008)
Log Message:
-----------
Fade out pdf view before removing fullscreen or presentation, gives a smoother
transition.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-09-28 17:45:30 UTC (rev 4704)
+++ trunk/SKMainWindowController.m 2008-09-28 18:06:41 UTC (rev 4705)
@@ -2588,6 +2588,17 @@
if ([[fullScreenWindow firstResponder] isDescendantOf:pdfView])
[fullScreenWindow makeFirstResponder:nil];
+
+ NSDictionary *fadeOutDict = [NSDictionary
dictionaryWithObjectsAndKeys:pdfView, NSViewAnimationTargetKey,
NSViewAnimationFadeOutEffect, NSViewAnimationEffectKey, nil];
+ NSViewAnimation *animation = [[NSViewAnimation alloc]
initWithViewAnimations:[NSArray arrayWithObjects:fadeOutDict, nil]];
+
+ [animation setAnimationBlockingMode:NSAnimationBlocking];
+ [animation setDuration:1.0];
+ [animation startAnimation];
+ [animation release];
+
+ [pdfView setAlphaValue:1.0];
+ [pdfView setHidden:NO];
[pdfView setInteractionMode:SKNormalMode screen:[[self window] screen]];
[pdfView setFrame:[[pdfEdgeView contentView] bounds]];
[pdfEdgeView addSubview:pdfView]; // this should be done before
exitPresentationMode to get a smooth transition
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