Revision: 12619 http://sourceforge.net/p/skim-app/code/12619 Author: hofman Date: 2021-12-12 10:07:20 +0000 (Sun, 12 Dec 2021) Log Message: ----------- Combine show TeX fie command with edit command
Modified Paths: -------------- trunk/SKMainDocument.h trunk/SKMainDocument.m trunk/Skim.sdef Modified: trunk/SKMainDocument.h =================================================================== --- trunk/SKMainDocument.h 2021-12-11 18:58:52 UTC (rev 12618) +++ trunk/SKMainDocument.h 2021-12-12 10:07:20 UTC (rev 12619) @@ -105,7 +105,7 @@ - (void)handleRevertScriptCommand:(NSScriptCommand *)command; - (void)handleGoToScriptCommand:(NSScriptCommand *)command; - (id)handleFindScriptCommand:(NSScriptCommand *)command; -- (void)handleShowTeXScriptCommand:(NSScriptCommand *)command; +- (void)handleEditScriptCommand:(NSScriptCommand *)command; - (void)handleConvertNotesScriptCommand:(NSScriptCommand *)command; - (void)handleReadNotesScriptCommand:(NSScriptCommand *)command; Modified: trunk/SKMainDocument.m =================================================================== --- trunk/SKMainDocument.m 2021-12-11 18:58:52 UTC (rev 12618) +++ trunk/SKMainDocument.m 2021-12-12 10:07:20 UTC (rev 12619) @@ -2060,7 +2060,7 @@ return specifier ?: [NSArray array]; } -- (void)handleShowTeXScriptCommand:(NSScriptCommand *)command { +- (void)handleEditScriptCommand:(NSScriptCommand *)command { NSDictionary *args = [command evaluatedArguments]; id page = [args objectForKey:@"Page"]; id pointData = [args objectForKey:@"Point"]; Modified: trunk/Skim.sdef =================================================================== --- trunk/Skim.sdef 2021-12-11 18:58:52 UTC (rev 12618) +++ trunk/Skim.sdef 2021-12-12 10:07:20 UTC (rev 12619) @@ -473,20 +473,6 @@ <type type="specifier" list="yes"/> </result> </command> - - <command name="show TeX file" code="SKIMSTeX" - description="Show the LaTeX source file."> - <direct-parameter type="document" - description="The document to show the TeX source for."/> - <parameter name="from" code="from" type="point" optional="yes" - description="The point from the page to show the TeX line for."> - <cocoa key="Point"/> - </parameter> - <parameter name="at" code="at " type="page" optional="yes" - description="The page to show the TeX line for."> - <cocoa key="Page"/> - </parameter> - </command> <command name="get bounds for" code="SKIMBnds" description="Get the bounds of a page, note, or selection."> @@ -658,10 +644,20 @@ </command> <command name="edit" code="SKIMEdit" - description="Edit a note."> + description="Edit a note or show a TeX file for a document."> <direct-parameter type="note" - description="The note to edit."> + description="The note or document to edit."> + <type type="note"/> + <type type="document"/> </direct-parameter> + <parameter name="from" code="from" type="point" optional="yes" + description="The point from the page to show the TeX file for."> + <cocoa key="Point"/> + </parameter> + <parameter name="at" code="at " type="page" optional="yes" + description="The page to show the TeX file for."> + <cocoa key="Page"/> + </parameter> </command> <class-extension extends="item" hidden="yes" @@ -822,8 +818,8 @@ <responds-to name="find"> <cocoa method="handleFindScriptCommand:"/> </responds-to> - <responds-to name="show TeX file"> - <cocoa method="handleShowTeXScriptCommand:"/> + <responds-to name="edit"> + <cocoa method="handleEditScriptCommand:"/> </responds-to> <responds-to name="get bounds for"> <cocoa method=""/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit