Kate
katecommandlinescript.cpp
Go to the documentation of this file.
33 KateCommandLineScript::KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header)
51 bool KateCommandLineScript::callFunction(const QString& cmd, const QStringList args, QString &errorMessage)
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
virtual bool help(KTextEditor::View *view, const QString &cmd, QString &msg)
Definition: katecommandlinescript.cpp:155
virtual const QStringList & cmds()
Definition: katecommandlinescript.cpp:107
bool unregisterCommand(KTextEditor::Command *cmd)
Definition: katecmd.cpp:59
KateScript objects represent a script that can be executed and inspected.
Definition: katescript.h:106
void removeFirst()
bool isUndefined() const
QString backtrace(const QScriptValue &error, const QString &header=QString())
Returns the backtrace when a script has errored out.
Definition: katescript.cpp:106
virtual ~KateCommandLineScript()
Definition: katecommandlinescript.cpp:40
bool hasUncaughtException() const
ScriptActionInfo actionInfo(const QString &cmd)
Definition: katecommandlinescript.cpp:76
QScriptValue call(const QScriptValue &thisObject, const QScriptValueList &args)
QString toString() const
bool callFunction(const QString &cmd, const QStringList args, QString &errorMessage)
Definition: katecommandlinescript.cpp:51
void setShortcut(const QString &shortcut)
Definition: katecommandlinescript.h:64
void setCommand(const QString &command)
Definition: katecommandlinescript.h:54
const QStringList & functions() const
Definition: katecommandlinescript.h:40
bool toBool() const
bool isEmpty() const
void setInteractive(bool interactive)
Definition: katecommandlinescript.h:62
T & first()
void setCategory(const QString &category)
Definition: katecommandlinescript.h:60
void clearExceptions()
Clears any uncaught exceptions in the script engine.
Definition: katescript.cpp:128
const KateCommandLineScriptHeader & commandHeader()
Definition: katecommandlinescript.cpp:45
QScriptValue property(const QString &name, const ResolveFlags &mode) const
Definition: kateview.h:77
bool isString() const
KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header)
Definition: katecommandlinescript.cpp:33
virtual bool supportsRange(const QString &cmd)
Definition: katecommandlinescript.cpp:150
bool setView(KateView *view)
set view for this script for the execution will trigger load!
Definition: katescript.cpp:219
void displayBacktrace(const QScriptValue &error, const QString &header=QString())
Displays the backtrace when a script has errored out.
Definition: katescript.cpp:119
bool isValid() const
Definition: katecommandlinescript.h:47
virtual bool exec(KTextEditor::View *view, const QString &cmd, QString &msg)
Definition: katecommandlinescript.cpp:112
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.