Revision: 4945
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4945&view=rev
Author:   hofman
Date:     2008-11-11 21:44:07 +0000 (Tue, 11 Nov 2008)

Log Message:
-----------
Add script command to convert notes.

Modified Paths:
--------------
    trunk/SKPDFDocument.h
    trunk/SKPDFDocument.m
    trunk/Skim.sdef

Modified: trunk/SKPDFDocument.h
===================================================================
--- trunk/SKPDFDocument.h       2008-11-11 16:26:32 UTC (rev 4944)
+++ trunk/SKPDFDocument.h       2008-11-11 21:44:07 UTC (rev 4945)
@@ -151,6 +151,7 @@
 - (void)handleGoToScriptCommand:(NSScriptCommand *)command;
 - (id)handleFindScriptCommand:(NSScriptCommand *)command;
 - (void)handleShowTeXScriptCommand:(NSScriptCommand *)command;
+- (void)handleConvertNotesScriptCommand:(NSScriptCommand *)command;
 
 @end
 

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2008-11-11 16:26:32 UTC (rev 4944)
+++ trunk/SKPDFDocument.m       2008-11-11 21:44:07 UTC (rev 4945)
@@ -2074,6 +2074,10 @@
     }
 }
 
+- (void)handleConvertNotesScriptCommand:(NSScriptCommand *)command {
+    [self convertNotesSheetDidEnd:nil returnCode:NSAlertDefaultReturn 
contextInfo:NULL];
+}
+
 @end
 
 

Modified: trunk/Skim.sdef
===================================================================
--- trunk/Skim.sdef     2008-11-11 16:26:32 UTC (rev 4944)
+++ trunk/Skim.sdef     2008-11-11 21:44:07 UTC (rev 4945)
@@ -164,6 +164,9 @@
             <responds-to name="go">
                 <cocoa method="handleGoToScriptCommand:"/>
             </responds-to>
+            <responds-to name="convert notes">
+                <cocoa method="handleConvertNotesScriptCommand:"/>
+            </responds-to>
             <responds-to name="find">
                 <cocoa method="handleFindScriptCommand:"/>
             </responds-to>
@@ -1179,6 +1182,12 @@
                        </parameter>
         </command>
 
+        <command name="convert notes" code="SKIMConv"
+            description="Convert in a document PDF annotations to Skim notes.">
+            <direct-parameter type="specifier"
+                description="The document(s) or window(s) to revert."/>
+        </command>
+
         <command name="find" code="SKIMFind"
             description="Find text in a document.">
             <direct-parameter type="document"


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

Reply via email to