Revision: 3398
http://skim-app.svn.sourceforge.net/skim-app/?rev=3398&view=rev
Author: hofman
Date: 2008-02-12 12:41:52 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
Check all documents for validating menu items to navigate in all documents.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-02-12 20:19:30 UTC (rev 3397)
+++ trunk/SKMainWindowController.m 2008-02-12 20:41:52 UTC (rev 3398)
@@ -5248,14 +5248,22 @@
else
[menuItem setState:[pdfView annotationMode] == (unsigned)[menuItem
tag] ? NSOnState : NSOffState];
return YES;
- } else if (action == @selector(doGoToNextPage:) || action ==
@selector(allGoToNextPage:)) {
+ } else if (action == @selector(doGoToNextPage:)) {
return [pdfView canGoToNextPage];
- } else if (action == @selector(doGoToPreviousPage:) || action ==
@selector(allGoToPreviousPage:)) {
+ } else if (action == @selector(doGoToPreviousPage:) ) {
return [pdfView canGoToPreviousPage];
- } else if (action == @selector(doGoToFirstPage:) || action ==
@selector(allGoToFirstPage:)) {
+ } else if (action == @selector(doGoToFirstPage:)) {
return [pdfView canGoToFirstPage];
- } else if (action == @selector(doGoToLastPage:) || action ==
@selector(allGoToLastPage:)) {
+ } else if (action == @selector(doGoToLastPage:)) {
return [pdfView canGoToLastPage];
+ } else if (action == @selector(allGoToNextPage:)) {
+ return NO == [[NSApp
valueForKeyPath:@"orderedDocuments.pdfView.canGoToNextPage"]
containsObject:[NSNumber numberWithBool:NO]];
+ } else if (action == @selector(allGoToPreviousPage:)) {
+ return NO == [[NSApp
valueForKeyPath:@"orderedDocuments.pdfView.canGoToPreviousPage"]
containsObject:[NSNumber numberWithBool:NO]];
+ } else if (action == @selector(allGoToFirstPage:)) {
+ return NO == [[NSApp
valueForKeyPath:@"orderedDocuments.pdfView.canGoToFirstPage"]
containsObject:[NSNumber numberWithBool:NO]];
+ } else if (action == @selector(allGoToLastPage:)) {
+ return NO == [[NSApp
valueForKeyPath:@"orderedDocuments.pdfView.canGoToLastPage"]
containsObject:[NSNumber numberWithBool:NO]];
} else if (action == @selector(doGoBack:)) {
return [pdfView canGoBack];
} else if (action == @selector(doGoForward:)) {
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