Kate
katescripthelpers.cpp
Go to the documentation of this file.
70 const QString fullName = KGlobal::dirs()->findResource ("data", "katepart/script/files/" + name);
105 const QString fullName = KGlobal::dirs()->findResource ("data", "katepart/script/libraries/" + name);
167 KLocalizedString substituteArguments( const KLocalizedString &kls, const QVariantList &arguments, int max = 99 )
307 KLocalizedString ls = ki18ncp(trContext.toUtf8(), trSingular.toUtf8(), trPlural.toUtf8()).subs( number );
void setCodec(QTextCodec *codec)
qlonglong toLongLong(bool *ok) const
QScriptValue debug(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:154
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
void setThisObject(const QScriptValue &thisObject)
QScriptValue i18np(QScriptContext *context, QScriptEngine *engine)
i18np("singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:239
QStringList backtrace() const
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
QScriptValue evaluate(const QString &program, const QString &fileName, int lineNumber)
QString join(const QString &separator) const
QVariant toVariant() const
int argumentCount() const
qulonglong toULongLong(bool *ok) const
QScriptContext * currentContext() const
QString toString() const
QScriptValue i18ncp(QScriptContext *context, QScriptEngine *engine)
i18ncp("context", "singular", "plural", number, arguments [optional])
Definition: katescripthelpers.cpp:273
bool readFile(const QString &sourceUrl, QString &sourceCode)
read complete file contents, helper
Definition: katescripthelpers.cpp:41
void setActivationObject(const QScriptValue &activation)
QScriptValue require(QScriptContext *context, QScriptEngine *engine)
Definition: katescripthelpers.cpp:94
uint toUInt(bool *ok) const
int toInt(bool *ok) const
bool toBool() const
bool isEmpty() const
QScriptValue read(QScriptContext *context, QScriptEngine *)
Definition: katescripthelpers.cpp:58
QScriptValue nullValue()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
QScriptValue property(const QString &name, const ResolveFlags &mode) const
QScriptValue thisObject() const
QScriptContext * parentContext() const
virtual void close()
KLocalizedString substituteArguments(const KLocalizedString &kls, const QVariantList &arguments, int max=99)
helper function to do the substitution from QtScript > QVariant > real values
Definition: katescripthelpers.cpp:167
qint32 toInt32() const
double toDouble(bool *ok) const
QScriptValue argument(int index) const
QScriptValue activationObject() const
Type type() const
QString readAll()
QScriptValue globalObject() const
QString toString() const
void setProperty(const QString &name, const QScriptValue &value, const PropertyFlags &flags)
QByteArray toUtf8() const
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
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.