Revision: 3397 http://skim-app.svn.sourceforge.net/skim-app/?rev=3397&view=rev Author: hofman Date: 2008-02-12 12:19:30 -0800 (Tue, 12 Feb 2008)
Log Message: ----------- Add alternate menu items and actions to move all documents to the next/previous/first/last page. Modified Paths: -------------- trunk/English.lproj/MainMenu.nib/classes.nib trunk/English.lproj/MainMenu.nib/info.nib trunk/English.lproj/MainMenu.nib/keyedobjects.nib trunk/SKMainWindowController.h trunk/SKMainWindowController.m Modified: trunk/English.lproj/MainMenu.nib/classes.nib =================================================================== --- trunk/English.lproj/MainMenu.nib/classes.nib 2008-02-12 18:46:22 UTC (rev 3396) +++ trunk/English.lproj/MainMenu.nib/classes.nib 2008-02-12 20:19:30 UTC (rev 3397) @@ -1,112 +1,128 @@ { - IBClasses = ( - { - ACTIONS = { - addBookmark = id; - alternatePaste = id; - alternateZoomToFit = id; - autoCropAll = id; - autoSelectContent = id; - changeAnnotationMode = id; - changeDisplayBox = id; - changeLeftSidePaneState = id; - changeRightSidePaneState = id; - changeToolMode = id; - chooseTransition = id; - convertNotes = id; - createNewNote = id; - crop = id; - cropAll = id; - deselectAll = id; - displayCropBox = id; - displayFacingPages = id; - displayMediaBox = id; - displaySinglePages = id; - doGoBack = id; - doGoForward = id; - doGoToFirstPage = id; - doGoToLastPage = id; - doGoToNextPage = id; - doGoToPage = id; - doGoToPreviousPage = id; - doZoomIn = id; - doZoomOut = id; - doZoomToActualSize = id; - doZoomToFit = id; - doZoomToPhysicalSize = id; - doZoomToSelection = id; - editBookmarks = id; - editNote = id; - getInfo = id; - goToMarkedPage = id; - markPage = id; - newDocumentFromClipboard = id; - orderFrontLineInspector = id; - orderFrontNotesPanel = id; - password = id; - performFit = id; - readNotes = id; - rotateAllLeft = id; - rotateAllRight = id; - rotateLeft = id; - rotateRight = id; - saveArchive = id; - saveDiskImage = id; - savePDFSettingToDefaults = id; - searchPDF = id; - smartAutoCropAll = id; - takeSnapshot = id; - toggleAutoScale = id; - toggleDisplayAsBook = id; - toggleDisplayContinuous = id; - toggleDisplayPageBreaks = id; - toggleFullScreen = id; - toggleHideNotes = id; - toggleLeftSidePane = id; - togglePresentation = id; - toggleReadingBar = id; - toggleRightSidePane = id; - toggleSplitPDF = id; - toggleStatusBar = id; - }; - CLASS = FirstResponder; - LANGUAGE = ObjC; - SUPERCLASS = NSObject; - }, - {CLASS = NSView; LANGUAGE = ObjC; SUPERCLASS = NSResponder; }, - { - ACTIONS = { - editBookmarks = id; - openBookmark = id; - saveCurrentOpenDocuments = id; - showDownloads = id; - showPreferencePanel = id; - showReleaseNotes = id; - visitWebSite = id; - visitWiki = id; - }; - CLASS = SKApplicationController; - LANGUAGE = ObjC; - SUPERCLASS = NSObject; - }, - { - CLASS = SKDocumentController; - LANGUAGE = ObjC; - SUPERCLASS = NSDocumentController; - }, - {CLASS = SKSplashContentView; LANGUAGE = ObjC; SUPERCLASS = NSView; }, - { - ACTIONS = {fadeOut = id; }; - CLASS = SKSplashWindow; - LANGUAGE = ObjC; - SUPERCLASS = NSWindow; - }, - { - ACTIONS = {checkForUpdates = id; }; - CLASS = SUUpdater; - LANGUAGE = ObjC; - SUPERCLASS = NSObject; + IBClasses = ( + { + ACTIONS = { + addBookmark = id; + allGoToFirstPage = id; + allGoToLastPage = id; + allGoToNextPage = id; + allGoToPreviousPage = id; + alternatePaste = id; + alternateZoomToFit = id; + autoCropAll = id; + autoSelectContent = id; + changeAnnotationMode = id; + changeDisplayBox = id; + changeLeftSidePaneState = id; + changeRightSidePaneState = id; + changeToolMode = id; + chooseTransition = id; + convertNotes = id; + createNewNote = id; + crop = id; + cropAll = id; + deselectAll = id; + displayCropBox = id; + displayFacingPages = id; + displayMediaBox = id; + displaySinglePages = id; + doGoBack = id; + doGoForward = id; + doGoToFirstPage = id; + doGoToLastPage = id; + doGoToNextPage = id; + doGoToPage = id; + doGoToPreviousPage = id; + doZoomIn = id; + doZoomOut = id; + doZoomToActualSize = id; + doZoomToFit = id; + doZoomToPhysicalSize = id; + doZoomToSelection = id; + editBookmarks = id; + editNote = id; + getInfo = id; + goToMarkedPage = id; + markPage = id; + newDocumentFromClipboard = id; + orderFrontLineInspector = id; + orderFrontNotesPanel = id; + password = id; + performFit = id; + readNotes = id; + rotateAllLeft = id; + rotateAllRight = id; + rotateLeft = id; + rotateRight = id; + saveArchive = id; + saveDiskImage = id; + savePDFSettingToDefaults = id; + searchPDF = id; + smartAutoCropAll = id; + takeSnapshot = id; + toggleAutoScale = id; + toggleDisplayAsBook = id; + toggleDisplayContinuous = id; + toggleDisplayPageBreaks = id; + toggleFullScreen = id; + toggleHideNotes = id; + toggleLeftSidePane = id; + togglePresentation = id; + toggleReadingBar = id; + toggleRightSidePane = id; + toggleSplitPDF = id; + toggleStatusBar = id; + }; + CLASS = FirstResponder; + LANGUAGE = ObjC; + SUPERCLASS = NSObject; + }, + { + CLASS = NSView; + LANGUAGE = ObjC; + SUPERCLASS = NSResponder; + }, + { + ACTIONS = { + editBookmarks = id; + openBookmark = id; + saveCurrentOpenDocuments = id; + showDownloads = id; + showPreferencePanel = id; + showReleaseNotes = id; + visitWebSite = id; + visitWiki = id; + }; + CLASS = SKApplicationController; + LANGUAGE = ObjC; + SUPERCLASS = NSObject; + }, + { + CLASS = SKDocumentController; + LANGUAGE = ObjC; + SUPERCLASS = NSDocumentController; + }, + { + CLASS = SKSplashContentView; + LANGUAGE = ObjC; + SUPERCLASS = NSView; + }, + { + ACTIONS = { + fadeOut = id; + }; + CLASS = SKSplashWindow; + LANGUAGE = ObjC; + SUPERCLASS = NSWindow; + }, + { + ACTIONS = { + checkForUpdates = id; + }; + CLASS = SUUpdater; + LANGUAGE = ObjC; + SUPERCLASS = NSObject; } - ); - IBVersion = 1; + ); + IBVersion = 1; } \ No newline at end of file Modified: trunk/English.lproj/MainMenu.nib/info.nib =================================================================== --- trunk/English.lproj/MainMenu.nib/info.nib 2008-02-12 18:46:22 UTC (rev 3396) +++ trunk/English.lproj/MainMenu.nib/info.nib 2008-02-12 20:19:30 UTC (rev 3397) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>IBDocumentLocation</key> @@ -16,6 +16,6 @@ <integer>29</integer> </array> <key>IBSystem Version</key> - <string>8S165</string> + <string>9C31</string> </dict> </plist> Modified: trunk/English.lproj/MainMenu.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/SKMainWindowController.h =================================================================== --- trunk/SKMainWindowController.h 2008-02-12 18:46:22 UTC (rev 3396) +++ trunk/SKMainWindowController.h 2008-02-12 20:19:30 UTC (rev 3397) @@ -233,6 +233,10 @@ - (IBAction)doGoToPreviousPage:(id)sender; - (IBAction)doGoToFirstPage:(id)sender; - (IBAction)doGoToLastPage:(id)sender; +- (IBAction)allGoToNextPage:(id)sender; +- (IBAction)allGoToPreviousPage:(id)sender; +- (IBAction)allGoToFirstPage:(id)sender; +- (IBAction)allGoToLastPage:(id)sender; - (IBAction)goToFirstOrPreviousPage:(id)sender; - (IBAction)goToNextOrLastPage:(id)sender; - (IBAction)doGoToPage:(id)sender; Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2008-02-12 18:46:22 UTC (rev 3396) +++ trunk/SKMainWindowController.m 2008-02-12 20:19:30 UTC (rev 3397) @@ -1481,6 +1481,22 @@ [pdfView goToLastPage:sender]; } +- (IBAction)allGoToNextPage:(id)sender { + [[NSApp valueForKeyPath:@"orderedDocuments.pdfView"] makeObjectsPerformSelector:@selector(goToNextPage:) withObject:sender]; +} + +- (IBAction)allGoToPreviousPage:(id)sender { + [[NSApp valueForKeyPath:@"orderedDocuments.pdfView"] makeObjectsPerformSelector:@selector(goToPreviousPage:) withObject:sender]; +} + +- (IBAction)allGoToFirstPage:(id)sender { + [[NSApp valueForKeyPath:@"orderedDocuments.pdfView"] makeObjectsPerformSelector:@selector(goToFirstPage:) withObject:sender]; +} + +- (IBAction)allGoToLastPage:(id)sender { + [[NSApp valueForKeyPath:@"orderedDocuments.pdfView"] makeObjectsPerformSelector:@selector(goToLastPage:) withObject:sender]; +} + - (IBAction)goToFirstOrPreviousPage:(id)sender { if ([sender selectedSegment] == 0) [pdfView goToFirstPage:sender]; @@ -5232,13 +5248,13 @@ else [menuItem setState:[pdfView annotationMode] == (unsigned)[menuItem tag] ? NSOnState : NSOffState]; return YES; - } else if (action == @selector(doGoToNextPage:)) { + } else if (action == @selector(doGoToNextPage:) || action == @selector(allGoToNextPage:)) { return [pdfView canGoToNextPage]; - } else if (action == @selector(doGoToPreviousPage:)) { + } else if (action == @selector(doGoToPreviousPage:) || action == @selector(allGoToPreviousPage:)) { return [pdfView canGoToPreviousPage]; - } else if (action == @selector(doGoToFirstPage:)) { + } else if (action == @selector(doGoToFirstPage:) || action == @selector(allGoToFirstPage:)) { return [pdfView canGoToFirstPage]; - } else if (action == @selector(doGoToLastPage:)) { + } else if (action == @selector(doGoToLastPage:) || action == @selector(allGoToLastPage:)) { return [pdfView canGoToLastPage]; } else if (action == @selector(doGoBack:)) { return [pdfView canGoBack]; 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit