[okular] /: Add TeXstudio support

Yuri Chornoivan null at kde.org
Sun Feb 24 20:22:05 GMT 2019


Git commit 2b6e75e41136c03f8755ded44d1bfa25cc2e2471 by Yuri Chornoivan.
Committed on 24/02/2019 at 20:22.
Pushed by yurchor into branch 'master'.

Add TeXstudio support

Summary:
Some people need it because it is now the default TeX editor in distributions.

BUG: 404120

Test Plan: "Settings -> Configure Okular... -> Editor -> TeXstudio". Should work for the reverse search if the tex file is compiled with \usepackage[active]{srcltx}

Reviewers: #okular, ngraham

Reviewed By: ngraham

Subscribers: ngraham, okular-devel, kde-doc-english

Tags: #okular, #documentation

Differential Revision: https://phabricator.kde.org/D19272

M  +1    -0    conf/dlgeditor.cpp
M  +1    -0    conf/okular_core.kcfg
M  +2    -0    core/texteditors_p.h
M  +1    -1    doc/index.docbook

https://commits.kde.org/okular/2b6e75e41136c03f8755ded44d1bfa25cc2e2471

diff --git a/conf/dlgeditor.cpp b/conf/dlgeditor.cpp
index e9c901198..3d1907ca5 100644
--- a/conf/dlgeditor.cpp
+++ b/conf/dlgeditor.cpp
@@ -31,6 +31,7 @@ DlgEditor::DlgEditor( QWidget * parent )
     m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "SciTE" ), 3 );
     m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Emacs client" ), 4 );
     m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Lyx client" ), 5 );
+    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "TeXstudio" ), 6 );
 
     m_dlg->kcfg_ExternalEditorCommand->setWhatsThis( i18nc( "@info:whatsthis",
         "<qt>Set the command of a custom text editor to be launched.<br />\n"
diff --git a/conf/okular_core.kcfg b/conf/okular_core.kcfg
index 35aaa9d2d..6a3c7bc1d 100644
--- a/conf/okular_core.kcfg
+++ b/conf/okular_core.kcfg
@@ -73,6 +73,7 @@
     <choice name="Scite" />
     <choice name="Emacsclient" />
     <choice name="Lyxclient" />
+    <choice name="Texstudio" />
    </choices>
   </entry>
   <entry key="ExternalEditorCommand" type="String">
diff --git a/core/texteditors_p.h b/core/texteditors_p.h
index b3a068e44..02a2a2c94 100644
--- a/core/texteditors_p.h
+++ b/core/texteditors_p.h
@@ -31,6 +31,8 @@ static inline QHash< int, QString > buildEditorsMap()
         QStringLiteral( "emacsclient -a emacs --no-wait +%l %f" ) );
     editors.insert( SettingsCore::EnumExternalEditor::Lyxclient,
         QStringLiteral( "lyxclient -g %f %l" ) );
+    editors.insert( SettingsCore::EnumExternalEditor::Texstudio,
+        QStringLiteral( "texstudio --line %l" ) );
     return editors;
 }
 
diff --git a/doc/index.docbook b/doc/index.docbook
index 774e6b4fc..995514f77 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -2399,7 +2399,7 @@ Context menu actions like Rename Bookmarks etc.)
 						This is the case when the document has references to the various points (usually row and column number) of sources it was generated from. The &DVI; format supports natively the addition of the information about the sources the LaTeX document was generated from. A similar system exists for &PDF; documents, called <acronym>pdfsync</acronym>, which stores these extra information in an external file named after the &PDF; file itself (for example <filename>mydocument.pdfsync</filename> for <filename>mydocument.pdf</filename>).
 						</para>
 						<para>
-						  &okular; ships with preconfigured settings for the following editors: <ulink url="http://kate-editor.org/">&kate;</ulink>, <ulink url="http://kile.sourceforge.net/">Kile</ulink>, <ulink url="http://www.scintilla.org/SciTE.html">SciTE</ulink>, <ulink url="http://www.gnu.org/software/emacs/">&Emacs; client</ulink>, and <ulink url="http://www.lyx.org/">LyX client</ulink>.
+						  &okular; ships with preconfigured settings for the following editors: <ulink url="https://kate-editor.org/">&kate;</ulink>, <ulink url="https://kile.sourceforge.io/">Kile</ulink>, <ulink url="https://www.scintilla.org/SciTE.html">SciTE</ulink>, <ulink url="https://www.gnu.org/software/emacs/">&Emacs; client</ulink>, <ulink url="https://www.lyx.org/">LyX client</ulink>, and <ulink url="https://www.texstudio.org/">TeXstudio</ulink>.
 						</para>
 						<note>
 						  <para>


More information about the kde-doc-english mailing list