2008-10-19 18:01:16 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef OKULAR_TEXTEDITORS_P_H
|
|
|
|
#define OKULAR_TEXTEDITORS_P_H
|
|
|
|
|
2012-10-15 22:27:42 +00:00
|
|
|
#include "settings_core.h"
|
2008-10-19 18:01:16 +00:00
|
|
|
|
|
|
|
#include <qhash.h>
|
|
|
|
#include <qstring.h>
|
|
|
|
|
|
|
|
namespace Okular
|
|
|
|
{
|
|
|
|
|
|
|
|
static inline QHash< int, QString > buildEditorsMap()
|
|
|
|
{
|
|
|
|
QHash< int, QString > editors;
|
2012-10-15 22:27:42 +00:00
|
|
|
editors.insert( SettingsCore::EnumExternalEditor::Kate,
|
2015-10-29 12:37:11 +00:00
|
|
|
QStringLiteral( "kate --line %l --column %c" ) );
|
2012-10-15 22:27:42 +00:00
|
|
|
editors.insert( SettingsCore::EnumExternalEditor::Kile,
|
2015-10-29 12:37:11 +00:00
|
|
|
QStringLiteral( "kile --line %l" ) );
|
2012-10-15 22:27:42 +00:00
|
|
|
editors.insert( SettingsCore::EnumExternalEditor::Scite,
|
2015-10-29 12:37:11 +00:00
|
|
|
QStringLiteral( "scite %f \"-goto:%l,%c\"" ) );
|
2012-10-15 22:27:42 +00:00
|
|
|
editors.insert( SettingsCore::EnumExternalEditor::Emacsclient,
|
2015-10-29 12:37:11 +00:00
|
|
|
QStringLiteral( "emacsclient -a emacs --no-wait +%l %f" ) );
|
2012-10-15 22:27:42 +00:00
|
|
|
editors.insert( SettingsCore::EnumExternalEditor::Lyxclient,
|
2015-10-29 12:37:11 +00:00
|
|
|
QStringLiteral( "lyxclient -g %f %l" ) );
|
2008-10-19 18:01:16 +00:00
|
|
|
return editors;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|