1 /***************************************************************************
2 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef OKULAR_TEXTEDITORS_P_H
11 #define OKULAR_TEXTEDITORS_P_H
21 static inline QHash
< int, QString
> buildEditorsMap()
23 QHash
< int, QString
> editors
;
24 editors
.insert( Settings::EnumExternalEditor::Kate
,
25 QString::fromLatin1( "kate --use --line %l --column %c" ) );
26 editors
.insert( Settings::EnumExternalEditor::Kile
,
27 QString::fromLatin1( "kile --line %l" ) );
28 editors
.insert( Settings::EnumExternalEditor::Scite
,
29 QString::fromLatin1( "scite %f \"-goto:%l,%c\"" ) );
30 editors
.insert( Settings::EnumExternalEditor::Emacsclient
,
31 QString::fromLatin1( "emacsclient -a emacs --no-wait +%l %f" ) );