mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 13:11:41 +00:00
7ce6990098
Will make it easier to make separate apps based on the core in the future Note this will most probably break your settings if you are not running a very up to date kdelibs (4.9 or 4.10) so be careful on updating REVIEW: 104947
40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
/***************************************************************************
|
|
* 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
|
|
|
|
#include "settings_core.h"
|
|
|
|
#include <qhash.h>
|
|
#include <qstring.h>
|
|
|
|
namespace Okular
|
|
{
|
|
|
|
static inline QHash< int, QString > buildEditorsMap()
|
|
{
|
|
QHash< int, QString > editors;
|
|
editors.insert( SettingsCore::EnumExternalEditor::Kate,
|
|
QString::fromLatin1( "kate --use --line %l --column %c" ) );
|
|
editors.insert( SettingsCore::EnumExternalEditor::Kile,
|
|
QString::fromLatin1( "kile --line %l" ) );
|
|
editors.insert( SettingsCore::EnumExternalEditor::Scite,
|
|
QString::fromLatin1( "scite %f \"-goto:%l,%c\"" ) );
|
|
editors.insert( SettingsCore::EnumExternalEditor::Emacsclient,
|
|
QString::fromLatin1( "emacsclient -a emacs --no-wait +%l %f" ) );
|
|
editors.insert( SettingsCore::EnumExternalEditor::Lyxclient,
|
|
QString::fromLatin1( "lyxclient -g %f %l" ) );
|
|
return editors;
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|