• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
texteditors_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
3  * *
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  ***************************************************************************/
9 
10 #ifndef OKULAR_TEXTEDITORS_P_H
11 #define OKULAR_TEXTEDITORS_P_H
12 
13 #include "settings_core.h"
14 
15 #include <qhash.h>
16 #include <qstring.h>
17 
18 namespace Okular
19 {
20 
21 static inline QHash< int, QString > buildEditorsMap()
22 {
23  QHash< int, QString > editors;
24  editors.insert( SettingsCore::EnumExternalEditor::Kate,
25  QString::fromLatin1( "kate --use --line %l --column %c" ) );
26  editors.insert( SettingsCore::EnumExternalEditor::Kile,
27  QString::fromLatin1( "kile --line %l" ) );
28  editors.insert( SettingsCore::EnumExternalEditor::Scite,
29  QString::fromLatin1( "scite %f \"-goto:%l,%c\"" ) );
30  editors.insert( SettingsCore::EnumExternalEditor::Emacsclient,
31  QString::fromLatin1( "emacsclient -a emacs --no-wait +%l %f" ) );
32  editors.insert( SettingsCore::EnumExternalEditor::Lyxclient,
33  QString::fromLatin1( "lyxclient -g %f %l" ) );
34  return editors;
35 }
36 
37 }
38 
39 #endif
Okular::buildEditorsMap
static QHash< int, QString > buildEditorsMap()
Definition: texteditors_p.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal