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
This commit is contained in:
Yuri Chornoivan 2019-02-24 13:27:00 +02:00
parent bc4c19eb92
commit 2b6e75e411
4 changed files with 5 additions and 1 deletions

View file

@ -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"

View file

@ -73,6 +73,7 @@
<choice name="Scite" />
<choice name="Emacsclient" />
<choice name="Lyxclient" />
<choice name="Texstudio" />
</choices>
</entry>
<entry key="ExternalEditorCommand" type="String">

View file

@ -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;
}

View file

@ -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>