Commit b5f76c6a authored by Pino Toscano's avatar Pino Toscano

Add "Lyx client" as predefined editor.

Thanks to Juergen Spitzmueller for his lyx command line invocation!
BUG: 195348

svn path=/trunk/KDE/kdegraphics/okular/; revision=992401
parent 30a1f789
......@@ -30,6 +30,7 @@ DlgEditor::DlgEditor( QWidget * parent )
m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Kile" ), 2 );
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_ExternalEditorCommand->setWhatsThis( i18nc( "@info:whatsthis",
"<qt>Set the command of a custom text editor to be launched.<br />\n"
......
......@@ -171,6 +171,7 @@
<choice name="Kile" />
<choice name="Scite" />
<choice name="Emacsclient" />
<choice name="Lyxclient" />
</choices>
</entry>
<entry key="ExternalEditorCommand" type="String">
......
......@@ -29,6 +29,8 @@ static inline QHash< int, QString > buildEditorsMap()
QString::fromLatin1( "scite %f \"-goto:%l,%c\"" ) );
editors.insert( Settings::EnumExternalEditor::Emacsclient,
QString::fromLatin1( "emacsclient -a emacs --no-wait +%l %f" ) );
editors.insert( Settings::EnumExternalEditor::Lyxclient,
QString::fromLatin1( "lyxclient -g %f %l" ) );
return editors;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment