Revision: 5651
http://skim-app.svn.sourceforge.net/skim-app/?rev=5651&view=rev
Author: hofman
Date: 2009-09-03 23:43:31 +0000 (Thu, 03 Sep 2009)
Log Message:
-----------
redirect main PDFView actions from main controller
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2009-09-03 23:31:33 UTC (rev 5650)
+++ trunk/SKMainWindowController_UI.m 2009-09-03 23:43:31 UTC (rev 5651)
@@ -1344,15 +1344,8 @@
} else if (action == @selector(changeDisplayBox:)) {
[menuItem setState:[pdfView displayBox] == (PDFDisplayBox)[menuItem
tag] ? NSOnState : NSOffState];
return [self isPresentation] == NO;
- } else if (action == @selector(changeToolMode:)) {
- [menuItem setState:[pdfView toolMode] == (SKToolMode)[menuItem tag] ?
NSOnState : NSOffState];
- return YES;
- } else if (action == @selector(changeAnnotationMode:)) {
- if ([[menuItem menu] numberOfItems] > 8)
- [menuItem setState:[pdfView toolMode] == SKNoteToolMode &&
[pdfView annotationMode] == (SKToolMode)[menuItem tag] ? NSOnState :
NSOffState];
- else
- [menuItem setState:[pdfView annotationMode] ==
(SKToolMode)[menuItem tag] ? NSOnState : NSOffState];
- return YES;
+ } else if (action == @selector(delete:) || action == @selector(copy:) ||
action == @selector(cut:) || action == @selector(paste:) || action ==
@selector(alternatePaste:) || action == @selector(pasteAsPlainText:) || action
== @selector(deselectAll:) || action == @selector(changeAnnotationMode:) ||
action == @selector(changeToolMode:) || action == @selector(changeToolMode:)) {
+ return [pdfView validateMenuItem:menuItem];
} else if (action == @selector(doGoToNextPage:)) {
return [pdfView canGoToNextPage];
} else if (action == @selector(doGoToPreviousPage:) ) {
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