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

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • script
katescripthelpers.h
Go to the documentation of this file.
1 // This file is part of the KDE libraries
2 // Copyright (C) 2010 Dominik Haumann <dhaumann kde org>
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Library General Public
6 // License as published by the Free Software Foundation; either
7 // version 2 of the License, or (at your option) version 3.
8 //
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Library General Public License for more details.
13 //
14 // You should have received a copy of the GNU Library General Public License
15 // along with this library; see the file COPYING.LIB. If not, write to
16 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 // Boston, MA 02110-1301, USA.
18 
19 #ifndef KATE_SCRIPTHELPERS_H
20 #define KATE_SCRIPTHELPERS_H
21 
22 #include <QtScript/QScriptValue>
23 #include "katepartprivate_export.h"
24 
25 class QScriptEngine;
26 class QScriptContext;
27 
28 namespace Kate {
30  namespace Script {
31 
33  KATEPART_TESTS_EXPORT bool readFile(const QString& sourceUrl, QString& sourceCode);
34 
35  KATEPART_TESTS_EXPORT QScriptValue read(QScriptContext *context, QScriptEngine *engine);
36  KATEPART_TESTS_EXPORT QScriptValue require(QScriptContext *context, QScriptEngine *engine);
37  KATEPART_TESTS_EXPORT QScriptValue debug(QScriptContext *context, QScriptEngine *engine);
38  KATEPART_TESTS_EXPORT QScriptValue i18n(QScriptContext *context, QScriptEngine *engine);
39  KATEPART_TESTS_EXPORT QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine);
40  KATEPART_TESTS_EXPORT QScriptValue i18np(QScriptContext *context, QScriptEngine *engine);
41  KATEPART_TESTS_EXPORT QScriptValue i18ncp(QScriptContext *context, QScriptEngine *engine);
42  }
43 }
44 
45 #endif
46 
47 // kate: space-indent on; indent-width 2; replace-tabs on;
Kate::Script::debug
QScriptValue debug(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:154
Kate::Script::i18n
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
Kate::Script::i18np
QScriptValue i18np(QScriptContext *context, QScriptEngine *engine)
i18np("singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:239
Kate::Script::i18nc
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
QScriptValue
KATEPART_TESTS_EXPORT
#define KATEPART_TESTS_EXPORT
Definition: katepartprivate_export.h:36
Kate::Script::i18ncp
QScriptValue i18ncp(QScriptContext *context, QScriptEngine *engine)
i18ncp("context", "singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:273
Kate::Script::readFile
bool readFile(const QString &sourceUrl, QString &sourceCode)
read complete file contents, helper
Definition: katescripthelpers.cpp:41
QScriptEngine
Kate::Script::require
QScriptValue require(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:94
katepartprivate_export.h
Kate::Script::read
QScriptValue read(QScriptContext *context, QScriptEngine *)
Definition: katescripthelpers.cpp:58
QString
QScriptContext
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

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