Revision: 4985
http://skim-app.svn.sourceforge.net/skim-app/?rev=4985&view=rev
Author: hofman
Date: 2008-11-23 16:06:34 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
Edit alternate edit contextual menu item for note table to edit in a separate
window
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2008-11-23 16:03:19 UTC (rev 4984)
+++ trunk/SKMainWindowController_UI.m 2008-11-23 16:06:34 UTC (rev 4985)
@@ -927,10 +927,15 @@
if ([pdfView hideNotes] == NO && [items count] == 1) {
PDFAnnotation *annotation = [[self noteItems:items] lastObject];
if ([annotation isEditable]) {
- if ([[items lastObject] type])
+ if ([[items lastObject] type]) {
menuItem = [menu
addItemWithTitle:NSLocalizedString(@"Edit", @"Menu item title")
action:@selector(editNoteFromTable:) target:self];
- else
+ [menuItem setRepresentedObject:annotation];
+ menuItem = [menu
addItemWithTitle:[NSLocalizedString(@"Edit", @"Menu item title")
stringByAppendingEllipsis] action:@selector(editThisAnnotation:)
target:pdfView];
+ [menuItem setKeyEquivalentModifierMask:NSAlternateKeyMask];
+ [menuItem setAlternate:YES];
+ } else {
menuItem = [menu
addItemWithTitle:NSLocalizedString(@"Edit", @"Menu item title")
action:@selector(editThisAnnotation:) target:pdfView];
+ }
[menuItem setRepresentedObject:annotation];
}
if ([pdfView activeAnnotation] == annotation)
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