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
|
|
|
|
2020-07-08 11:54:37 +00:00
|
|
|
#include <QHash>
|
|
|
|
#include <QString>
|
2008-10-19 18:01:16 +00:00
|
|
|
|
|
|
|
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, QStringLiteral("kate --line %l --column %c"));
|
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Kile, QStringLiteral("kile --line %l"));
|
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Scite, QStringLiteral("scite %f \"-goto:%l,%c\""));
|
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Emacsclient, QStringLiteral("emacsclient -a emacs --no-wait +%l %f"));
|
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Lyxclient, QStringLiteral("lyxclient -g %f %l"));
|
2019-02-24 11:27:00 +00:00
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Texstudio, QStringLiteral("texstudio --line %l"));
|
2019-11-30 01:02:03 +00:00
|
|
|
editors.insert(SettingsCore::EnumExternalEditor::Texifyidea, QStringLiteral("idea --line %l"));
|
2008-10-19 18:01:16 +00:00
|
|
|
return editors;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|